execute_freecad_python
Run Python scripts within FreeCAD to directly manipulate documents, gated by the FREECAD_ALLOW_EXECUTE_PYTHON environment variable.
Instructions
Execute FreeCAD Python only when FREECAD_ALLOW_EXECUTE_PYTHON=true.
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": "execute_freecad_python"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| timeout_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||