execute_python_script
Run Python scripts in TouchDesigner to create, modify, or query nodes and project structures. Choose detail level and response format for structured output.
Instructions
Execute a Python script in TouchDesigner (detailLevel=minimal|summary|detailed, responseFormat=json|yaml|markdown)
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": {
"script": "<script>"
},
"name": "execute_python_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | e.g., "op('/project1/text_over_image').outputConnectors[0].connect(op('/project1/out1'))" | |
| detailLevel | No | Response detail level for tool output (minimal, summary, or detailed) | |
| responseFormat | No | Structured output format for formatted responses |