execute_code
Run Python code within FreeCAD to control 3D object creation, editing, and management. Receive execution status, output, and a screenshot of the design for verification.
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"
}