Package a COMP as a .tox in the vault
save_component_to_vaultSave a live TouchDesigner COMP as a reusable .tox file in the Obsidian vault and create a markdown note with load instructions, completing the component packaging loop.
Instructions
Save a live TouchDesigner COMP as a reusable .tox component file inside the Obsidian vault (at /.tox) and write a companion markdown note with frontmatter, a description, and load instructions — completing the build→parameterize→script→package-to-library loop. The saved .tox can later be loaded back with manage_component (load action). Requires a configured TDMCP_VAULT_PATH. The target COMP must exist and be a COMP (not a non-COMP operator).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp_path | Yes | The COMP to package as a reusable .tox component. | |
| name | No | Component name (defaults to the COMP's name). Used for the .tox filename and the note title. | |
| folder | No | Vault subfolder for the .tox + note. | Components |
| tags | No | Tags for the note frontmatter (for browse_vault_library). | |
| description | No | A short description stored in the note. | |
| preview_top | No | Output TOP to thumbnail for the component note (e.g. <comp_path>/out1). A COMP itself can't be captured (the preview endpoint renders TOPs), so the thumbnail is skipped unless you pass an explicit TOP path here. | |
| thumbnail | No | Capture a preview PNG next to the component note and embed it. Set false to skip. | |
| auto_tag | No | When true, inspect the COMP's child nodes via the bridge and union the auto_tag_library_asset suggestions into the note frontmatter's `tags`. |