td_build
Apply multiple TouchDesigner edits as one atomic, undoable batch. If any operation fails, the entire change is rolled back, preventing half-modified projects and enabling a single undo.
Instructions
Apply several edits to the project as one atomic, undoable block.
Prefer this over separate calls: if any step fails the whole batch is rolled back, so the project never ends up half-modified, and a successful batch is a single Ctrl+Z for the person using TouchDesigner.
Each operation is {"method": ..., "params": {...}} where method is one of op_create, op_delete, op_connect, op_disconnect, par_set.
op_create takes parent, type, name, optional pars {name: value}, optional position [x, y], optional connect [{"from": path, "index": 0}], and optional text for a DAT's contents — shader and script source belongs there, not in a separate td_exec, so it lands inside this undo block. Values may be a constant, {"expr": "..."} for an expression, {"bind": "..."} or {"pulse": true}. Parameter names are validated against the index first.
Pass the same owner you claimed the area with — it carries into every
step, and without it your own claim refuses the batch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | No | ||
| undo_name | No | agent edit | |
| operations | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |