diagnostic_hotspots

[diagnostics]

Groups TypeScript and JavaScript diagnostics by file, project, category, or code for compact triage.

Why this tool exists

TypeScript diagnostics are the fastest objective signal for broken imports, type errors, and project configuration problems.

How it helps the agent

The model can request filtered or grouped diagnostics instead of reading a full build or typecheck transcript.

Try it locally in the TGlider playground

Parameters

NameTypeRequiredDescription
filePathstringNoWorkspace-relative or absolute file path.
projectNamestringNoOptional loaded project name to scope the query.
severitystringNoFilter by 'all', 'error', 'warning', 'suggestion', or 'message'.
diagnosticCodesjsonNoOptional array of TypeScript diagnostic codes.
includeDeclarationFilesbooleanNoInclude diagnostics from declaration files.
includeGeneratedbooleanNoInclude diagnostics from generated-looking files.
groupBystringNoGroup by 'file', 'project', 'category', or 'code'.
exampleTakenumberNoMaximum diagnostic examples to include per group.
skipnumberNoNumber of matching results to skip.
takenumberNoMaximum number of matching results to return.

Examples

Group diagnostics by project

Request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "diagnostic_hotspots",
    "arguments": {
      "groupBy": "project",
      "severity": "error"
    }
  }
}

Response Notes

Returns grouped diagnostic counts and examples.

↑/↓ NavigateEnter OpenSpace Expand