Skip to main content
Glama

Set text content

set_text_content

Change a text layer's content while keeping its style, optionally setting a Source Text keyframe at a given time to animate or rekey the text in After Effects.

Instructions

Change the text of a text layer, keeping its style. With 'time' a Source Text keyframe is set (hold keyframe) at that time. If Source Text is already keyframed and no time is given, a keyframe is set at the comp's current time.

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>",
      "text": "<text>"
    },
    "name": "set_text_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
textYesNew text. '\n' = new paragraph.
timeNoOptional: set as a Source Text keyframe at this time.
layerYesText layer: 1-based index, name, or {id}.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only declare it is a non-destructive write; the description adds substantive behavior beyond that: existing styling is preserved, a hold keyframe is inserted rather than a linear one, and an implicit keyframe may be written at the current comp time even when the caller passes no time. That last side effect is exactly the kind of surprise an agent needs to know before calling a mutation tool.

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?

Three tight sentences, front-loaded with the primary effect and then the conditional keyframe rules; no filler. Slightly dense with conditional clauses, but every sentence carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no output schema, it covers the main side effects but says nothing about failure cases (invalid layer reference, non-text layer) or what is returned. Adequate against the rich 100%-covered schema, but the conditional keyframe behavior could be stated more fully.

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% and each parameter is documented in-schema, so the baseline applies. The description adds only the 'hold keyframe' interpolation detail beyond the schema's 'set as a Source Text keyframe at this time'; comp and layer semantics are untouched.

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 ('Change the text of a text layer') plus a key constraint ('keeping its style'), which separates it from style-editing siblings like set_text_style. It does not explicitly contrast with neighbors such as replace_text or set_source_text_keyframes, so sibling differentiation is left to inference.

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?

Gives conditional behavior guidance for the time parameter (when a keyframe is created, and the implicit keyframe when Source Text is already animated), which implies when to pass time. However, it never says when to choose this over replace_text or set_source_text_keyframes, so alternative selection is unaddressed.

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