Skip to main content
Glama

copy_frames

Copy cels from a source frame to target frames, including layers in groups, with replace or missing-only modes and optional linked cels.

Instructions

Copy the cels of one frame into other frames, layers inside groups included.

replace makes each target cel equal to the source: image, position, opacity and z-index, and a target is cleared where the source frame has no cel. missing_only only fills targets where the layer has no cel yet. link=true makes the copies linked cels that share the source's image. The source frame itself is skipped if listed in targets. Frame durations are not copied. A locked layer (or one in a locked group) that the copy would change is refused.

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>",
      "source": "<source>",
      "targets": "<targets>"
    },
    "name": "copy_frames"
  }
}

Input Schema

NameRequiredDescriptionDefault
linkNoMake the copies linked cels
modeNoreplace every target cel, or fill only where a layer has nonereplace
pathYesSprite file. Relative paths resolve against the server root.
layersNoLayers to copy (a group means all layers in it); null for all
sourceYes1-based frame number
targetsYesFrames to copy into ("2", "3-6", "all"), or "append:N" to add N empty frames at the end and copy into those

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses the destructive clear-on-missing behavior of replace, that link=true shares the source image, that frame durations are NOT copied, that the source frame is silently skipped if listed, and that locked layers or locked groups cause refusal. These are exactly the side effects and edge cases an agent needs before invoking a mutation.

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 the core action, then each subsequent clause covers a distinct rule (mode semantics, linking, source-skip, durations, locking) with no repetition. Slightly dense and the 'a target is cleared where the source frame has no cel' clause is awkwardly placed, but nothing is 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?

For a 6-parameter mutation tool with no annotations, the description covers the destructive path, the non-destructive path, linking semantics, a no-op edge case, and a refusal condition. With an output schema present, return values need not be described, so nothing material is missing.

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, and the description adds real meaning on top: it explains the semantics of the mode enum values, defines what link=true actually produces (shared image rather than independent copies), and clarifies that listing the source in targets is a no-op. It does not expand on path or layers, but the schema already covers those adequately.

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?

States a specific verb and resource ('Copy the cels of one frame into other frames') plus a scope qualifier ('layers inside groups included'). An agent can distinguish this from copy_layers, which operates on layers rather than frames, without opening the schema.

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?

Explicitly contrasts the two mode values: replace overwrites image/position/opacity/z-index and clears targets where the source has no cel, while missing_only fills only empty layers. It gives clear selection criteria for options but never states when to prefer a sibling tool over this one, and gives no preconditions beyond the locked-layer refusal.

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