Find & replace text
replace_textFind and replace text in After Effects layer Source Text keyframes across one comp or all project comps. Use literal or regex matching, target layers, and dry-run to preview changes.
Instructions
Find and replace in text layers of one comp (comp given) or every comp in the project (comp omitted). Literal by default; regex=true enables JavaScript regex with $1 groups. Updates every Source Text keyframe. dryRun=true only reports matches.
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": "replace_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Comp name/id to search. Omit to search ALL comps in the project. | |
| find | Yes | Text (or regex pattern) to find. | |
| regex | No | Treat 'find' as a regex. | |
| dryRun | No | Report what would change without changing anything. | |
| layers | No | Optional: only these layers (comp required). | |
| replace | No | Replacement (default ''). With regex, $1.. refer to groups. | |
| caseSensitive | No | Case-sensitive match (default true). |