Batch Rename
fc_batch_renameBatch rename files by removing prefixes or suffixes, replacing text, or auto-detecting patterns, with a dry-run preview option.
Instructions
Renames files by pattern: remove prefix/suffix, replace, or auto-detect.
Args:
directory (string): Directory with the files
mode (string): "remove_prefix" | "remove_suffix" | "replace" | "auto_detect"
pattern (string, optional): Text to remove/replace
replacement (string, optional): Replacement text (for replace mode)
extensions (string, optional): Filter by extensions
dry_run (boolean): Preview only
Examples:
Remove prefix: mode="remove_prefix", pattern="backup_"
Auto-detect: mode="auto_detect" detects common prefixes
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>",
"mode": "<mode>"
},
"name": "fc_batch_rename"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Mode | |
| dry_run | No | Preview only | |
| pattern | No | Text to remove/replace | |
| directory | Yes | Directory | |
| extensions | No | Filter extensions | |
| replacement | No | Replacement text |