Skip to main content
Glama

Export image

export_image

Exports a composition, selected layers, or a region to PNG, JPEG, or WebP at a chosen scale, with control over format, quality, and background.

Instructions

Export the composite (or selected layers / a region) to PNG, JPEG or WebP at any scale.

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_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesOutput file path (~ allowed)
scaleNoResize factor (default 1)
formatNoDefault from extension, else png
layersNoOnly these layers
regionNo
qualityNoJPEG/WebP quality 0..100 (default 92)
backgroundNo"doc" (default), "none" (transparent) or a color

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose the meaningful behaviors of layer-subsetting, region cropping, scaling, and format selection, but says nothing about whether an existing file at 'path' is overwritten, whether intermediate directories are created, or what is returned on success.

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?

A single front-loaded sentence with the formats and scope packed into a parenthetical; nothing is wasted. It stops short of a 5 only because the parenthetical slightly crowds the core statement.

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

Completeness3/5

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

For a 7-parameter tool with a nested region object, no annotations, and no output schema, the description covers the conceptual model adequately but leaves file-overwrite semantics and return-value expectations unexplained.

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 description coverage is 86%, so the schema already documents path, scale, format, layers, quality, and background. The description adds only the note that the default export target is the full composite, which is a small increment over structured data.

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 ('Export') and resource ('the composite'), and enumerates the variants (selected layers, a region) and output formats. It is clearly distinguishable from mutating siblings like add_layer or save_project, though it does not explicitly name an alternative tool.

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 only implied: the reader infers this is the tool for producing an image file, but there is no statement about when to prefer it over save_project, snapshot, or ui_screenshot, nor any preconditions (e.g. document must be open, path must be writable).

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