execute_script
Execute Python code within FreeCAD's environment to create objects, modify properties, run macros, or access APIs not covered by other tools.
Instructions
Execute arbitrary Python code in FreeCAD's interpreter context.
The script has access to: FreeCAD, FreeCADGui, App, Gui, doc (active document). Stdout and stderr are captured and returned.
Use this as an escape hatch for operations not covered by the specific tools above. For example: creating objects, modifying properties, running macros, or accessing FreeCAD APIs not yet exposed as tools.
Args: script: Python code to execute.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes |