Call node method
exec_node_methodInvoke arbitrary Python methods on a TouchDesigner node to perform operations not covered by standard tools, such as copy, destroy, or cook.
Instructions
Escape hatch — invoke an arbitrary Python method on a node (operator). Prefer structured tools where one exists; use this for operations they don't cover (e.g. .cook(), .copy(), .destroy()).
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": {
"path": "<path>",
"method": "<method>"
},
"name": "exec_node_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Positional arguments. | |
| path | Yes | Full path of the node to call the method on. | |
| kwargs | No | Keyword arguments. | |
| method | Yes | Method name to call, e.g. 'cook', 'par', 'destroy', 'copy'. |