execute_code
Run Python code directly in FreeCAD to control its functionality. Returns execution status, output, and object screenshots for integration and automation tasks.
Instructions
Execute arbitrary Python code in FreeCAD.
Args:
code: The Python code to execute.
Returns:
A message indicating the success or failure of the code execution, the output of the code execution, and a screenshot of the object.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
code | Yes |
Input Schema (JSON Schema)
{
"properties": {
"code": {
"title": "Code",
"type": "string"
}
},
"required": [
"code"
],
"title": "execute_codeArguments",
"type": "object"
}