generate_code
Generates STM32CubeMX application code into a specified directory, excluding drivers and IDE files, with optional layout control for all-in-main or one-file-per-IP output.
Instructions
Generate only the CubeMX application code into a directory (generate code <dir>, no drivers/IDE files). mode may force the all-in-main or one-file-per-IP layout first.
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_id": "<project_id>"
},
"name": "generate_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Optional layout override | |
| output_dir | No | Destination directory | |
| project_id | Yes | Project id |