Skip to main content
Glama

Duplicate composition

duplicate_comp

Duplicates an After Effects composition, optionally copying nested precomps recursively and relinking them to create a fully independent composition tree.

Instructions

Duplicate a composition. With deep=true, nested precomps are duplicated recursively too and the copies are relinked, so the new comp tree is fully independent of the original (each shared precomp is copied once).

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": "duplicate_comp"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
deepNoAlso duplicate all nested precomps recursively and relink them (default false).
folderNoProject folder name, 'A/B' path or id. A missing name/path is created at the project root.
newNameNoName of the duplicate (default: AE's auto name, e.g. 'Main 2').
nestedSuffixNodeep only: suffix added to duplicated precomp names, e.g. ' v2' (default: AE's auto name).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare that this is a non-read-only, non-destructive, closed-world mutation. The description goes further by explaining what deep mode actually does: recursive duplication, relinking, one copy per shared precomp, and a resulting tree fully independent of the original. It omits where the duplicate lands and what is returned, but the key behavioral risk areas are covered.

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 with the core action front-loaded and the conditional deep semantics following. No filler, no restatement of the title, and the parenthetical about shared precomps is compact and load-bearing.

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?

For a five-parameter, all-optional mutation with full schema coverage and no output schema, the description supplies enough to call it correctly, including the default-off semantics of deep. The one gap is that an agent cannot tell what the tool returns (e.g., the new comp's identity), which matters when chaining into open_comp or get_comp_info.

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 all five parameters are already documented, which sets the baseline at 3. The description does add real meaning for deep beyond the schema's terse "recursively and relink them" – namely the independence guarantee and the deduplication of shared precomps – but says nothing extra about comp, folder, newName, or nestedSuffix.

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?

"Duplicate a composition" is a specific verb+resource that cleanly separates this from the other duplicate_* siblings (layers, effects) by the object being copied. It stops short of naming an alternative, but the resource noun alone makes the target unambiguous.

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?

The description explains the conditional behavior of deep=true, which is genuine in-tool guidance, but it never says when to prefer a deep copy versus a shallow one, or when to use duplicate_comp instead of create_comp / create_comp_from_footage. Usage is implied rather than directed.

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