Check selected files with TypeScript
check_typesRun TypeScript compiler diagnostics on selected JavaScript or TypeScript files using local project settings and declarations to catch type errors before runtime.
Instructions
Return TypeScript compiler diagnostics for selected JavaScript/TypeScript files. Uses the full local project's declarations and settings, but reports selected files only. No model, emit, plugins or project code execution. Without a config, uses inferred null checking with JS checking. Reports skipped files, incomplete context and limits; no diagnostics is not proof of runtime safety.
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": {
"files": "<files>"
},
"name": "check_types"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Absolute paths of up to 20 files in one project | |
| project | No | Explicit tsconfig.json/jsconfig.json path; otherwise discovered |