Skip to main content
Glama

Export a frame as PNG

export_frame

Save one composition frame as a full-resolution PNG at a given path, with transparent background by default or optional flattening via comp or color background.

Instructions

Save one frame of a composition as a full-resolution PNG file at a given path (no image is returned, only path and size). Transparent background by default (alpha kept); pass background='comp' or a color to flatten 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": {
      "path": "<path>"
    },
    "name": "export_frame"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
pathYesAbsolute output path ending in .png (missing folders are created).
timeNoFrame time. Default: the comp's current time.
overwriteNoReplace an existing file (default true).
backgroundNo'transparent' (default), 'comp' or '#RRGGBB'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-destructive, closed-world write, and the description supplements this with behavior the annotations cannot express: it writes a file to disk, returns only path and size, and defaults to preserving alpha (with background='comp' or a color flattening it). It does not discuss the overwrite-existing-file consequence, which lives only in the schema.

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?

Two sentences, both dense and front-loaded: the primary action and return shape come first, then the background default and its override. Nothing is repeated from the schema and nothing is wasted.

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?

With no output schema, the description correctly carries the return-value burden by stating only path and size come back. Combined with full schema coverage for path, time, overwrite, and comp, the definition is nearly complete; only the overwrite-destroys-existing-file implication is left solely to the schema.

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 the baseline is 3, but the description adds meaning beyond the schema for the most ambiguous parameter: it explains that transparency is the default and that 'comp' or a color flattens the image, clarifying what the enum choice actually does rather than just listing values.

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?

The description gives a specific verb and resource: save one frame of a composition as a full-resolution PNG at a given path. The parenthetical '(no image is returned, only path and size)' implicitly separates it from preview-style siblings, though it never names one, so sibling differentiation is helpful but indirect.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the note that no image is returned tells an agent this is a disk-write path, not a viewing tool, which steers away from preview_frame. There is no explicit when-to-use/when-not guidance and no prerequisite information such as whether the comp must be open or rendered.

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