MCP server · App Intents · CLI
每项功能都可以由 AI 助手调用。一切都在 Mac 本地运行——AI 发出请求,BatchShift 完成工作,BatchShift 不会上传任何内容。
打开 BatchShift → 设置 → AI → 连接。然后重启 AI 应用。
设置 → AI → 拷贝命令,然后粘贴到终端。
操作会出现在“快捷指令”App 的 BatchShift 分类下。
手动配置 MCP:
{
"mcpServers": {
"batchshift": {
"command": "/Applications/BatchShift.app/Contents/MacOS/batchshift",
"args": ["mcp"]
}
}
}
工具名称和说明以英文显示——与你的 AI 助手收到的内容完全一致。
| 工具 | 作用 | 会改动文件? |
|---|---|---|
convert_images | Convert, resize and/or compress images in bulk. Writes new files to a 'Converted' folder (or output_dir); originals are untouched. Use max_size_px for resizing (long edge, never upscales), quality or max_kb for compression. Location (GPS) is removed by default. | 是 |
remove_location | Remove GPS location from photos without re-compressing them (no quality loss). By default writes cleaned copies to a 'Converted' folder; set in_place to overwrite the originals. | 是 |
list_images | List images in a folder, optionally only those added since a time (e.g. 'today', 'yesterday', '7d', '2026-11-14') and of certain types. Read-only. Use before converting when the user describes files by date or type. | 否 |
image_info | Summarise images: count, total size, formats, largest dimensions and how many contain GPS location. Read-only. | 否 |
job_status | Progress and results of a background conversion job (job_id from convert_images, or "latest"). Read-only. | 否 |
cancel_job | Stop a background conversion job (job_id from convert_images, or "latest"). Images already converted are kept. | 是 |
savings_stats | How much disk space BatchShift has saved so far on this Mac (all conversions). Read-only. | 否 |
batchshift list batchshift convert_images --paths ~/Downloads --format jpg --max-size-px 2000