replaceTextInComp
Find and replace text across composition layers to customize After Effects templates and MoGRTs, with optional updates to font size and color.
Instructions
Find and replace text content across layers in a composition (ideal for customizing AE templates & MoGRTs)
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": {
"newText": "<newText>"
},
"name": "replaceTextInComp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | Optional new text color [r, g, b] with values 0-1 | |
| newText | Yes | New text content to insert | |
| compName | No | Composition name | |
| findText | No | Substring to search for and replace across text layers | |
| fontSize | No | Optional new font size | |
| compIndex | No | Composition index (defaults to active comp) | |
| layerName | No | Specific text layer name to update | |
| layerIndex | No | Specific layer index to update |