Bulk retag
bulk_retagAdd, remove, or replace tags for books matching a search query to organize your Calibre library.
Instructions
Add, remove, or replace tags for books matching a search query. Useful for bulk organization tasks like categorizing all books by an author or cleaning up tag names.
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": {
"query": "<query>",
"action": "<action>",
"tags": "<tags>"
},
"name": "bulk_retag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | Yes | Tags to add/remove (comma-separated). For 'replace' action, format as 'old_tag:new_tag'. | |
| limit | No | Maximum books to process (default: 50). | |
| query | Yes | Calibre search query to find books to retag. Examples: 'author:Sanderson', 'tag:fiction', 'series:Cosmere'. | |
| action | Yes | Action to perform: 'add' tags to existing, 'remove' specific tags, 'replace' old tag with new. | |
| preview | No | If true (default), only show what would be changed. Set to false to apply changes. |