Save network as a vault recipe
save_recipe_to_vaultCapture a TouchDesigner COMP network and save it as a reusable recipe note in your Obsidian vault. Turn existing patches into templates for later use.
Instructions
Capture an existing COMP's network (child nodes, non-default parameters, wiring, and text/script DAT bodies) by reading TD, then WRITE it as a reusable recipe note in the Obsidian vault at Recipes/.md; list_recipes/apply_recipe then see it alongside the built-in recipes. Use this to turn a patch you already built into a template — to instantiate a template instead, use apply_recipe. Refuses to overwrite an existing note unless overwrite:true. Returns the note path, recipe id, and node/connection counts. Requires a configured TDMCP_VAULT_PATH.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Recipe id/slug; also the note filename written under Recipes/ in the vault. | |
| comp_path | No | COMP whose direct children are captured as the recipe. | /project1 |
| name | No | Human-friendly title (defaults to the id). | |
| description | No | One-line summary stored in the recipe note's frontmatter (defaults to empty). | |
| tags | No | Free-form tags for searching/filtering the recipe later (defaults to none). | |
| difficulty | No | Skill-level label saved in the recipe metadata (defaults to 'intermediate'). | |
| overwrite | No | When false, refuse to replace an existing Recipes/<id>.md note; set true to overwrite it. | |
| preview_top | No | Output TOP to thumbnail for the recipe note (e.g. <comp_path>/out1). Defaults to the comp's first/last TOP child; omit a TOP entirely to skip the thumbnail. | |
| thumbnail | No | Capture a preview PNG next to the recipe note and embed it. Set false to skip. | |
| auto_tag | No | When true, run the auto_tag_library_asset heuristic on the captured network and merge the suggested tags (union, deduped) into the recipe frontmatter before writing. |