compile_check
Check C code syntax and semantics with structured error reports. Returns line-numbered warnings and errors for rapid development and CI builds.
Instructions
Compile-only syntax/semantic check (no execution). Returns structured errors and warnings with line numbers — perfect for fast iteration and CI-style validation.
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": {
"code": "<code>"
},
"name": "compile_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | C source code. | |
| filename | No | Optional file name; normalized to DOS 8.3 (.C). Default MAIN.C. | |
| extraCompilerArgs | No | Optional extra Turbo C flags, e.g. ['-ms','-w-','-O']. |