migrate_attachments
Convert Zotero cloud-stored attachments into linked local files, freeing cloud storage while keeping every file accessible. Starts as a dry run; apply=true executes the migration after review.
Instructions
Convert Zotero imported (cloud-stored) attachments into linked files: copy or download each file to local disk, hash-verify it, create a linked_file attachment, then move the original to the trash. Frees cloud storage quota while keeping every file locally. DEFAULTS TO A DRY RUN — pass apply=true to make changes, and only after showing the user plan_attachment_migration output. Never empties the trash; use inspect_trash then empty_trash for that, so the user can review what would be permanently destroyed.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "migrate_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | ||
| limit | No | ||
| modes | No | imported_file | |
| dest_dir | No | ||
| trash_originals | No | ||
| include_local_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |