🏷️

批量文件重命名

智能批量重命名文件,支持规则预览与自定义

🟡 注意级
⭐⭐ 进阶级
⏱️ 2-5分钟
✅ 适合人群: 需要整理文件的用户
📦 需要: Filesystem MCP

📋 📋 一键启动 Prompt

        @OpenClaw I need you to batch-rename files safely.

Context: I am using openclaw.

Safety rules
- Never overwrite files
- Always show a preview before applying
- Confirm the target folder and the rule

Step 1 — Environment check
- Ensure Filesystem MCP is available (@modelcontextprotocol/server-filesystem)

Step 2 — Collect inputs
Ask me for:
- Target folder path (absolute)
- File filter (e.g., *.png, *.md, all files)
- Rename rule (examples: prefix, suffix, regex, replace, date-based)

Step 3 — Preview
List at least 20 examples in a table:
old_name -> new_name
and ask me to confirm.

Step 4 — Apply
Rename files one by one with progress updates.

Step 5 — Report
Show totals: renamed / skipped / failed and why.

整个流程请用简体中文与我交互。
      

💡 提示: 点击“复制 Prompt”按钮,然后粘贴给 openclaw即可开始。

🎯 这个功能能做什么?

  • 按规则批量重命名文件
  • 执行前先预览改动
  • 默认避免覆盖同名文件

⚠️ 风险警告

重命名会改变文件路径。务必先预览,并在重要文件夹上提前备份。