Skip to main content
Glama

Preview a frame (image)

preview_frame
Read-only

Render one composition frame as an image to visually verify changes after edits, with optional size limits, background choice, and saved PNG output.

Instructions

Render ONE frame of a composition and return it as an IMAGE so you can see the result of your changes. Use it after every visual change. The frame is downscaled so its longest side is at most maxSize px (default 1024; 0 = full size) and drawn over the comp's background color (default) instead of transparency. Also returns width/height/time as text. Rendering uses a temporary comp that is removed again (one undo step).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "preview_frame"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
pathNoOptional absolute .png path to keep the frame (default: a temp previews folder).
timeNoFrame time (seconds, '12f' or timecode). Default: the comp's current time.
maxSizeNoLongest side in px (default 1024). 0 = full comp resolution.
backgroundNo'comp' (comp background color, default), 'transparent', or a color '#RRGGBB'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior1/5

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

The description contradicts readOnlyHint=true by saying rendering uses a temporary comp that is removed again, leaving one undo step; the schema also indicates an optional PNG path that is kept. These are side effects despite the read-only annotation, so the rubric requires a score of 1 with an annotation contradiction.

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

Conciseness5/5

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

The description is front-loaded with purpose, then usage, then behavior and return values. Every sentence adds useful information, with no filler.

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

Completeness5/5

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

Although there is no output schema, the description explains that an image is returned and that width, height, and time are returned as text. It also covers downscaling, background handling, and the temp-comp/undo behavior, so the agent has enough context to call it correctly.

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

Parameters3/5

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

Schema coverage is 100%, so the schema already documents all five parameters. The description restates the key defaults for maxSize and background but does not add much semantic detail beyond the schema, so the baseline of 3 is appropriate.

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

Purpose5/5

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

The description states a specific verb and resource: render ONE frame of a composition and return it as an IMAGE so the agent can visually inspect changes. The emphasis on one frame and visual preview distinguishes it from broader preview or export-style siblings.

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?

It gives a clear when-to-use rule: after every visual change. It does not name alternatives such as preview_frames or export_frame, nor explain when not to use it, but the intended context is explicit.

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

Deploy Server

Other Tools