batch_rename
Rename multiple files using regex patterns, prefix/suffix, or counter. Preview changes with dry run before applying.
Instructions
Rename multiple files using regex pattern, prefix/suffix, or counter. Always preview first with dry_run=true.
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": {
"directory": "<directory>",
"pattern": "<pattern>",
"replacement": "<replacement>"
},
"name": "batch_rename"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | true = preview only | |
| pattern | Yes | Regex pattern to match in filenames | |
| directory | Yes | Directory containing files to rename | |
| extensions | No | Comma-separated extensions to filter (e.g. 'jpg,png') | |
| replacement | Yes | Replacement string ($1, $2 for capture groups) |