Skip to main content
Glama

animate_trim_paths

Adds and keyframes a Trim Paths modifier on a shape or path layer to create draw-on animations, animating the end, start, or offset percent across a set time window with optional easing.

Instructions

Add + keyframe a Trim Paths modifier on a shape/path layer — the classic draw-on. Animates the chosen trim prop from from to to (percent) across the over [startSec,endSec] window. mode picks which prop: "end" (default, draw-on), "start", or "offset". Optional ease (in/out/inout, influence 75).

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": {
      "layer": "<layer>",
      "over": "<over>"
    },
    "name": "animate_trim_paths"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoEnd value % (default 100).
compNoComp: name (string), or { id: N } for duplicate-name-safe stable-id addressing. Defaults to active comp.
easeNo
fromNoStart value % (default 0).
modeNoWhich trim property to animate.end
overYes[startSec, endSec] keyframe times.
layerYesLayer: name (string), 1-based index (integer), or { id: N } for duplicate-name-safe stable-id addressing.
instanceNoTarget a specific AE when more than one is connected (e.g. "2026", "2025", or a major like "26"). Omit when only one AE is open — see list_instances.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden: it does disclose that this is a mutating add-plus-keyframe operation, the layer-type precondition (shape/path layer), the ease influence of 75, and the instance-targeting need. It omits what happens if the layer is not a shape layer, whether an existing Trim Paths modifier is reused, and how the created keyframes can be undone or overridden.

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 the mechanics, then parameter semantics, with no filler sentences. The dense shorthand ("percent", "[startSec,endSec] window", "influence 75") is efficient but slightly terse for an agent unfamiliar with the terminology.

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 an 8-parameter mutation tool with no output schema and no annotations, the description conveys the essential model of what gets created and how the value ramps. Remaining gaps are the return value and the handling of pre-existing modifiers or wrong layer types.

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 already 88%, so the baseline is 3, and the description still adds value: it explains that from/to are percentages, that the span is expressed as an [startSec,endSec] window in seconds, and that mode selects among end/start/offset with end meaning draw-on. It does not clarify the instance or comp parameters, but those are self-documented in the schema.

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?

States a specific verb pair ("Add + keyframe") and resource ("Trim Paths modifier on a shape/path layer") plus the common name for the effect ("the classic draw-on"). It is clearly distinct from generic path/shape tools, but it never names a sibling such as add_keyframe to delimit scope, so it falls short of the top band.

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 "classic draw-on" framing tells an agent the intended scenario, and the mode list explains which property each choice animates, including the default. There is no explicit when-not guidance or pointer to an alternative for animating a non-trim property.

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