Type check (structured)
npm_typecheckRun TypeScript type checks via tsc/tsgo --noEmit and return structured, compact errors with file, line, column, message, and TS code.
Instructions
Run tsc/tsgo --noEmit and return structured type errors with file, line, column, message, and TS error code. Much more compact than raw tsc output. Auto-detects tsgo for faster checking. Use project to specify a tsconfig.
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": "npm_typecheck"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Required. Project root directory | |
| project | No | Path to tsconfig.json (default: auto-detected by tsc) | |
| maxItems | No | Item cap; overrides detailLevel | |
| detailLevel | No | Item preset: summary 20, normal 100, full (default; also skips the response budget) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | No | ||
| errors | Yes | ||
| success | Yes | ||
| retained | No | ||
| truncated | No | ||
| errorCount | Yes |