Skip to main content
Glama

Batch rename project items

batch_rename_items

Rename 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

NameRequiredDescriptionDefault
caseNoChange letter case (applied last).
findNoText to find in the name (literal unless regex=true). Replaced by 'replace'.
stepNo{n} increment (default 1).
typeNoItem kind(s): composition, folder, footage, solid, placeholder, image, video, audio.
itemsNoExplicit items to rename (names, paths or ids).
regexNoTreat 'find' as a JavaScript regular expression (default false).
startNoFirst {n} value (default 1).
dryRunNoOnly preview the from -> to list, change nothing (default false).
filterNoOnly rename names containing this text (case-insensitive), or matching '/regex/flags', e.g. '/^BG/i'.
folderNoOnly items inside this folder ('root' = project root).
prefixNoText added before the name.
suffixNoText added after the name.
patternNoNew-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}'.
replaceNoReplacement for 'find' (default ''). With regex=true you can use $1, $2 groups.
selectedNoOnly items selected in the Project panel.
recursiveNoWith folder: include sub-folders (default true).
caseSensitiveNoCase-sensitive find (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the mutation profile is largely covered, and the description's chief addition is the deterministic pipeline order (find/replace -> pattern -> prefix/suffix -> case), which materially changes the outcome. The dryRun preview note reinforces this. It does not say what happens on name collisions or whether renames can be reverted, which is what would push this above the baseline for a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two compact sentences with no filler; the capability statement is front-loaded and the scope requirement and dryRun tip follow. The parenthetical rule chain is dense shorthand, readable for an agent but borderline telegraphic.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 17-parameter mutation tool with no output schema, the description covers the essential gaps: mandatory scoping, evaluation order, the dryRun preview, and the reference to batch_rename_layers for rule details. Missing edge-case behavior such as duplicate-name handling or undoability keeps it from being fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, and each property (including the {name}/{orig}/{n:3}/{folder} tokens and regex group syntax) is already documented in the schema, so the baseline of 3 applies. The description adds the cross-parameter application order, which is genuinely beyond per-field docs, but it otherwise restates schema content rather than extending it.

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

Purpose4/5

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

States a specific verb and resource ('Rename many project items') and enumerates the affected kinds (comps, footage, solids, folders), which separates it from the singular rename_item and rename_layer. It also names batch_rename_layers as the source of the rename rule semantics, so the agent knows the two differ only by target entity rather than by behavior.

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 a concrete precondition: 'A scope is required: items, folder, selected, type and/or filter', which tells the agent it cannot call this blindly on the whole project. It also recommends dryRun=true for previewing, a clear recommended usage pattern. It stops short of an explicit when-not-to-use statement (e.g., single item vs. layers), which keeps it from a 5.

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