Skip to main content
Glama

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

NameRequiredDescriptionDefault
fileYesThe rendered part: absolute, or relative to session.
nameYesShort slug, e.g. 'lower-third'. Same name = a new version.
noteYesOne line: what it is and when to use it.
groupYesMotion, Titles, Captions, Covers, Logos, Sounds, or another one-word group.
libraryNoA 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).
sessionNoSession: 'Project/folder', an absolute path or its id (from get_session). Old paths still work.
source_dirNoOptional folder that makes it (e.g. the HyperFrames composition).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2026.11.11
    • changedInput schema / properties / library / description
      Previous value: -"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)."New value: +"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)."
    • changedInput schema / properties / session / description
      Previous value: -"Session as 'Project/folder', an absolute path, or its id (from get_session). An old path still works after a rename or move."New value: +"Session: 'Project/folder', an absolute path or its id (from get_session). Old paths still work."
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare it as a non-read-only, non-destructive, closed-world write; the description adds genuine behavior beyond that by disclosing the write target (assets/<group>/<name>), versioning ('becomes the next version'), a downstream surface (the Styles board where the user comments), and the payload requirement of a playable preview.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with what gets saved, followed by where it lands and when to call it; every sentence carries information. The long middle enumeration of example asset types is the only slightly padded part.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter write tool with no output schema, the description covers the artifact, the destination path, versioning, and the preview/composition parameters, which is what an agent must know to call it correctly. The library and session parameters are left entirely to the schema, but at 100% coverage that is acceptable.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3; the description still adds meaning by prescribing that file must be a playable preview (.mp4 or .png) and by explaining source_dir's purpose (retaining the HyperFrames composition), which the asides in the schema state more tersely.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Specific verb and resource: 'Keep a reusable part of an edit in the style library', backed by concrete asset examples (title card, lower third, transition, cover layout, sound). It never names a sibling, so an agent cannot tell from the text alone why it would pick this over save_broll or copy_library.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Do it after each edit for every part a later video could use again' gives a clear trigger condition and a cadence. There is no explicit exclusion or named alternative for the case where the artifact is a b-roll clip rather than a style asset.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.