Run TypeScript type checker
typecheckPerform TypeScript type checking via tsc --noEmit and retrieve structured errors with file, line, column, and error code.
Instructions
Runs tsc --noEmit and returns structured errors with file, line, column, error code, and message.
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": {
"project_dir": "<project_dir>"
},
"name": "typecheck"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Specific files to check (overrides tsconfig includes) | |
| tsconfig | No | Path to tsconfig file relative to project_dir | tsconfig.json |
| project_dir | Yes | Absolute path to the project root (must contain tsconfig.json) | |
| timeout_seconds | No |