Repair network (bounded)
repair_networkScan and repair cook errors in a TouchDesigner subtree by classifying and planning safe fixes, bounded by a step limit. Optionally apply known-safe repairs when dry_run is disabled.
Instructions
Bounded, autonomous repair: scan cook errors under a subtree, classify each, and plan a safe fix, capped at max_steps so it can never run away. Defaults to dry_run (PLAN only, no changes). Set dry_run:false to apply the known-safe fixes — resetting a broken parameter expression to constant mode, and re-enabling a bypassed/display-off op — within the same bound; risky cases (DAT syntax errors, missing inputs, unclassified errors) are always PLAN-only. Re-checks errors after applying and stops at the bound or when errors clear. Returns {parent_path, dry_run, max_steps, errors_before, errors_after, steps[], remaining[], warnings, rolled_back}. Use it as the diagnostic 'try the obvious safe fixes' loop after a build; for raw triage use summarize_td_errors / get_td_node_errors instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent_path | No | Root of the subtree to scan + repair. | /project1 |
| max_steps | No | Hard cap on repair attempts — the bound that prevents runaway repair. | |
| dry_run | No | When true (default), only PLAN fixes (no changes applied). Set false to apply within the bound. |