rename_files
Batch rename files in a directory using regex pattern matching, with an optional preview to verify changes before applying.
Instructions
Batch rename files in a directory using regex pattern matching. Supports preview mode.
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": {
"path": "<path>",
"pattern": "<pattern>",
"replacement": "<replacement>"
},
"name": "rename_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Directory path containing files to rename | |
| pattern | Yes | Pattern to search for (regex) | |
| replacement | Yes | Replacement string | |
| preview | No | Preview changes without applying |