check
Run compiler diagnostics on one file via the running language server. Get errors and warnings in milliseconds to confirm an edit compiles without a build.
Instructions
Compiler diagnostics for one file, from the already-running language server — errors and warnings in milliseconds, without a build. Run this after editing to confirm the change compiles.
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": {
"file": "<file>"
},
"name": "check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path relative to the repo root | |
| limit | No | Max diagnostics (default 40) | |
| severity | No | Lowest severity to report: 1 errors only, 2 errors+warnings (default), 3 adds info, 4 adds style hints. |