getDiagnostics
Retrieve TypeScript diagnostics—errors and warnings—for a file or project to identify code issues.
Instructions
Get TypeScript diagnostics (errors, warnings) for a file or project
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "getDiagnostics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | File to check (omit for all project files) | |
| content | No | File content for virtual/unsaved files | |
| severity | No | Filter by severity | all |
| projectRoot | No | Project root directory |