Skip to main content
Glama

Set Source Text keyframes

set_source_text_keyframes

Change text over time by setting Source Text hold keyframes on a text layer, enabling counters or word swaps with optional per-key styles and clearing old keyframes.

Instructions

Change the text over time: sets Source Text hold keyframes [{time, text, style?}] (e.g. a counter or word swap). Each key keeps the style present at that time unless 'style' is given. clearExisting removes old Source Text keyframes first.

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>",
      "keys": "<keys>"
    },
    "name": "set_source_text_keyframes"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
keysYesKeyframes in any order.
layerYesText layer: 1-based index, name, or {id}.
clearExistingNoDelete existing Source Text keyframes first.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations declare readOnly=false, destructive=false, openWorld=false, and the description adds behavior the annotations do not: these are hold keyframes (no interpolation), each key inherits the style present at that time unless 'style' is supplied, and clearExisting deletes prior Source Text keyframes. That last point is a scoped deletion worth knowing, since destructiveHint claims false; the description is being transparent rather than misleading, so no contradiction is flagged.

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?

Three tight sentences: purpose first, then the style-inheritance rule, then the clearExisting flag. No filler, no repetition of schema detail beyond a compact shape hint.

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 4-parameter mutation tool with fully documented schema and no output schema, the description covers the key unknowns: hold semantics, style inheritance, and the delete-first flag. It could say more about what happens to keys outside the supplied set or whether the tool creates the Source Text property if absent, but nothing essential for a correct call 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 already 100%, so the baseline is 3, but the description adds semantics beyond the schema: the per-key style inheritance rule ('keeps the style present at that time unless style is given') and the ordering implication that clearExisting deletes old keys before writing. The '[{time, text, style?}]' shape restates the schema but is a useful summary.

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 and resource: setting Source Text hold keyframes on a text layer to change text over time, with concrete examples (counter, word swap). It is distinguishable from generic keyframe tools like add_keyframes and from set_text_content, though it never names a sibling explicitly.

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?

The opening clause 'Change the text over time' plus the counter/word-swap examples give a clear picture of when this tool is the right choice, and the clearExisting sentence explains the cleanup path. It stops short of stating exclusions (e.g. that it targets the Source Text property specifically rather than transform/other properties) or naming alternatives.

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