get_file_diagnostics
Analyze a single TypeScript file and return type errors or warnings to ensure code quality.
Instructions
Run TypeScript diagnostics on a single file and return any type errors or warnings.
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_file_diagnostics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Relative path to the TypeScript file (no path traversal or absolute paths allowed). |