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
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Comp: name (string), or { id: N } for duplicate-name-safe stable-id addressing. Defaults to active comp. | |
| find | Yes | Substring to search for (non-empty). | |
| dryRun | No | Report matches without changing (default true). | |
| replace | No | Replacement text (default empty = delete matches). | |
| instance | No | Target 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. | |
| matchCase | No | ||
| wholeWord | No | Only match when bounded by non-word chars. |