compile_c
Compile a single C source file into an object file, with control over include directories, defines, flags, and timeout—turning source code into a build artifact for embedded firmware projects.
Instructions
Compile one C source file into an object file.
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": {
"source": "<source>"
},
"name": "compile_c"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flags | No | ||
| output | No | ||
| source | Yes | ||
| defines | No | ||
| timeout | No | ||
| include_dirs | No |