save_to_library
Save reusable edit parts—titles, captions, transitions, covers, logos, or sounds—to the style library as versioned assets with a note and preview for future videos.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file": "<file>",
"group": "<group>",
"name": "<name>",
"note": "<note>"
},
"name": "save_to_library"
}
}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>' (a new name makes a new style), a project name, or 'comments' (the comment copilot's lessons, target list and best comments). | |
| session | No | Session: 'Project/folder', an absolute path or its id (from get_session). Old paths still work. | |
| source_dir | No | Optional folder that makes it (e.g. the HyperFrames composition). |