Batch rename project items
batch_rename_itemsRename multiple After Effects project items at once using find/replace, patterns, prefixes/suffixes, and case rules; preview changes with dryRun before applying.
Instructions
Rename many project items (comps, footage, solids, folders) at once, with the same rules as batch_rename_layers (find/replace -> pattern -> prefix/suffix -> case). A scope is required: items, folder, selected, type and/or filter. Use dryRun=true to preview.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "batch_rename_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| case | No | Change letter case (applied last). | |
| find | No | Text to find in the name (literal unless regex=true). Replaced by 'replace'. | |
| step | No | {n} increment (default 1). | |
| type | No | Item kind(s): composition, folder, footage, solid, placeholder, image, video, audio. | |
| items | No | Explicit items to rename (names, paths or ids). | |
| regex | No | Treat 'find' as a JavaScript regular expression (default false). | |
| start | No | First {n} value (default 1). | |
| dryRun | No | Only preview the from -> to list, change nothing (default false). | |
| filter | No | Only rename names containing this text (case-insensitive), or matching '/regex/flags', e.g. '/^BG/i'. | |
| folder | No | Only items inside this folder ('root' = project root). | |
| prefix | No | Text added before the name. | |
| suffix | No | Text added after the name. | |
| pattern | No | New-name template. Tokens: {name} (current name after find/replace), {orig} (original name), {n} counter, {n:3} zero-padded counter, {type}, {id}; layers also {comp} and {index}; items also {folder}. Example: '{comp}_{type}_{n:2}'. | |
| replace | No | Replacement for 'find' (default ''). With regex=true you can use $1, $2 groups. | |
| selected | No | Only items selected in the Project panel. | |
| recursive | No | With folder: include sub-folders (default true). | |
| caseSensitive | No | Case-sensitive find (default true). |