Skip to main content
Glama

duplicate_frame

Copy a specified frame in an Aseprite sprite and insert the copy directly after the original, returning the new frame number and updated frame count.

Instructions

Duplicate an existing frame (1-based); the copy is inserted directly after it.

`frame` must already exist: an out-of-range number is rejected with the sprite's
valid range rather than clamped to it.

Returns `newFrame`, the copy's number (always `frame + 1`), and the new `frameCount`,
plus `inserted` and `renumbered_from` exactly as `add_frame` reports them: every frame
after the one duplicated moves up by one, and a tag that covered it grows to take in
the copy.

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": {
      "filename": "<filename>",
      "frame": "<frame>"
    },
    "name": "duplicate_frame"
  }
}

Input Schema

NameRequiredDescriptionDefault
frameYes
filenameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.10.0
    • removedInput schema / properties / filename / title
      Removed value: -"Filename"
    • removedInput schema / properties / frame / title
      Removed value: -"Frame"
    • removedInput schema / title
      Removed value: -"duplicate_frameArguments"
  2. First observedv0.7.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, openWorldHint=false, destructiveHint=false; the description goes well beyond them by disclosing the error contract (out-of-range rejected with the valid range, not clamped) and the cascading side effects (frames after the target shift up, covering tags grow, renumbering is reported). It stops short of saying whether the copy shares cels/tags by reference or is deep-copied, which matters for a duplication 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 one-line purpose and placement, then preconditions, then return values — a sensible ordering with no filler. The final sentence is dense and packs several concepts (inserted, renumbered_from, tag growth) into one clause, which slightly hurts scanability.

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 usefully documents newFrame, frameCount, inserted, and renumbered_from, and it covers the error path. It remains silent on whether the duplicated frame's cels are shared or copied and on what 'filename' identifies, which leaves minor gaps for a mutation tool.

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 0%, so the description carries the burden; it makes 'frame' far more than an integer by specifying 1-based indexing, the existence/range precondition, and rejection rather than clamping. 'filename' is never mentioned, so the description does not fully compensate for the coverage gap.

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 ('Duplicate an existing frame') plus the placement of the result ('inserted directly after it'). This implicitly distinguishes it from add_frame (which inserts a new frame) and from reordering tools like move_frame, so an agent can pick it without opening any schema.

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 context is implied by the precondition that 'frame' must already exist, and the rejection behavior is spelled out, but there is no explicit when-to-use vs. when-not guidance relative to add_frame for a blank frame or duplicate_layer for other resources. The agent is left to infer the alternative.

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