get_diagnostics
Retrieve detailed TypeScript type errors, warnings, and diagnostics for a specified file in JSON, text, or formatted output.
Instructions
Get detailed type errors, warnings, and diagnostic information
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filePath": "<filePath>"
},
"name": "get_diagnostics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to TypeScript file to analyze | |
| formatOutput | No | Output format for diagnostics (formatted includes colors and icons) | formatted |