Apply Legacy TD Patch
td_patch_applyExecutes a destructive PatchPlan to modify a TouchDesigner network. For new builds, use td_brain_execute.
Instructions
(Legacy — prefer td_brain_plan → td_brain_execute; slated for removal in v3.0.) Destructive compatibility/expert PatchPlan executor. Prefer td_brain_execute for BrainPlans because it is the default validated transaction path for TDPilot-authored builds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | PatchPlan dict to execute | |
| label | No | Override plan.undo_label | |
| auto_validate | No | Run validate_target after apply | |
| transaction_options | No | Optional TransactionOptions dict. When provided, td_patch_apply uses the vNext transaction executor with preflight, snapshot, validation, and rollback policy. | |
| param_semantics_policy | No | Docs-grounded parameter safety policy for legacy patch applies. 'warn' preserves legacy behavior and attaches findings; 'block' refuses invalid or high-risk set_params operations before mutation. | warn |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||