save_to_library
Store reusable video edit elements like title cards and transitions in a versioned style library with notes, viewable on the Styles board for feedback.
Instructions
Keep a reusable part of an edit in the style library: a title card, lower third, caption look, transition, cover layout, sound. It becomes the next version of assets//, with your note, and shows on the app's Styles board, where the user comments on it. Do it after each edit for every part a later video could use again. Save a playable preview (.mp4 or .png), and pass source_dir to keep the HyperFrames composition that makes it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The rendered part: absolute, or relative to session. | |
| name | Yes | Short slug, e.g. 'lower-third'. Same name = a new version. | |
| note | Yes | One line: what it is and when to use it. | |
| group | Yes | Motion, Titles, Captions, Covers, Logos, Sounds, or another one-word group. | |
| library | No | A library: 'style:<Name>' for one of the user's styles (e.g. 'style:Magazine'; a new name makes a new style), a project name for that project's own additions, or 'comments' for the comment copilot's files (lessons, target list, style guide). | |
| session | No | Session as 'Project/folder', an absolute path, or its id (from get_session). An old path still works after a rename or move. | |
| source_dir | No | Optional folder that makes it (e.g. the HyperFrames composition). |