execute_python
Run Python code inside Marmoset Toolbag when Python execution is allowed, with mset imported to automate scene tasks; assign result to return values and print() for logs.
Instructions
Run Python inside Toolbag with mset imported; only while the user has ticked
"Allow Python execution" in the Toolbag MCP window. The namespace persists between
calls; assign result to return a value; print() output comes back as log.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||