Skip to main content
Glama

find_replace_text

Search and replace text across After Effects TextLayers project-wide or in one comp, previewing matches by default before applying changes.

Instructions

Find/replace text across TextLayers, project-wide or scoped to one comp. dryRun defaults to TRUE — it reports every match (comp, layer, before, after, count) WITHOUT changing anything; pass dryRun:false to apply. matchCase (default false) and wholeWord (manual word-boundary test — no regex) refine matching. Replacement preserves the text layer's document properties (uniform styling); keyframed source-text layers are reported but skipped. Returns { scanned, matches, replaced, dryRun }.

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

Input Schema

NameRequiredDescriptionDefault
compNoComp: name (string), or { id: N } for duplicate-name-safe stable-id addressing. Defaults to active comp.
findYesSubstring to search for (non-empty).
dryRunNoReport matches without changing (default true).
replaceNoReplacement text (default empty = delete matches).
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.
matchCaseNo
wholeWordNoOnly match when bounded by non-word chars.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations, the description carries the burden and does well: it discloses the dryRun-safe default, that keyframed source-text layers are reported but skipped, that styling/document properties are preserved, and the exact return shape. It does not address permissions, undo/reversibility, or performance on large projects, leaving meaningful gaps for a mutation tool with zero annotation coverage.

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?

Dense but front-loaded: purpose, then the mutation-safety default, then matching modifiers, then edge-case skips, then return shape. Every clause carries information an agent needs.

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?

Covers the risky behaviors and even the return shape despite no output schema, and is sufficient for calling correctly. However, 7 parameters with no annotations, no output schema, and no note on permissions or failure modes leaves the definition slightly under-complete for a project-wide mutation.

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 high (86%), yet the description adds real meaning: dryRun's report-vs-apply semantics, matchCase's default, and that wholeWord is a manual word-boundary test rather than regex. It also clarifies the comp scoping intent and instance targeting beyond the schema text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('find/replace text across TextLayers') plus its two scopes ('project-wide or scoped to one comp'). It clearly separates itself from set_text-style siblings by being a match-based replacement rather than a whole-value setter.

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?

Gives strong operational guidance: dryRun defaults to TRUE and must be set false to apply, and comp is optional for project-wide runs. It lacks an explicit 'use this instead of set_text when…' routing statement against siblings, so it stops short of full alternative guidance.

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