Skip to main content
Glama

Find and replace text in template clips

replace_mogrt_text

Find and replace plain text in After Effects MOGRT text fields across a sequence or single video track while keeping fonts and styles; use dry_run to preview changes first.

Instructions

Find and replace text in the text fields of every After Effects template clip of a sequence (or one video track), keeping fonts and styles. Plain text matching, not a pattern. Graphics made in Premiere Pro are skipped and counted. Returns replaced (fields changed), clips_scanned, premiere_graphics_skipped and changes: clip_id, index, name, before, after (read back). dry_run=true only reports what would change.

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": {
      "find": "<find>",
      "replace": "<replace>"
    },
    "name": "replace_mogrt_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
findYesText to look for.
dry_runNoReport the changes without making them. Default false.
replaceYesReplacement text (may be empty).
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
track_indexNoOnly this 0-based video track. Default: all video tracks.
sequence_nameNoSequence name; used only when sequence_id is not given.
case_sensitiveNoMatch upper/lower case exactly. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Beyond annotations, it discloses that fonts and styles are preserved, Premiere Pro graphics are skipped and counted, and dry_run only reports changes. It also describes the return summary and read-back before/after values, though it does not discuss undoability or failure behavior.

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?

The description is front-loaded with the core action, then efficiently covers matching semantics, skipped graphics, return values, and dry-run behavior. Every sentence carries useful information for this seven-parameter tool, and there is no redundant wording.

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 appropriately explains the return shape and counts, and it clarifies the key behavioral nuances of skipped graphics and dry_run. The main remaining gap is that it does not explicitly route users away from related single-clip text tools.

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 description coverage is 100%, so the schema already documents all seven parameters in detail. The description adds useful scope semantics such as applying to every template clip or one track, but it does not add parameter-level meaning beyond what the schema provides.

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?

The description states a specific verb and resource: find and replace text in the text fields of After Effects template clips, scoped to a sequence or one video track. It is clear about what it does, but it does not explicitly differentiate itself from the related set_mogrt_text tool by name.

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?

It gives clear usage context: bulk replacement across every template clip in a sequence, or limited to one video track. It also clarifies that matching is plain text rather than a pattern and that dry_run previews changes, but it does not explicitly state when another tool should be used instead.

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