td_exec
Execute Python code inside TouchDesigner with access to op, project, ParMode, and absTime in scope, returning stdout.
Instructions
Escape hatch: run Python inside TD (op, project, ParMode, absTime in scope). Returns stdout.
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": {
"code": "<code>"
},
"name": "td_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |