add_book
Add an ebook file to the Calibre library with metadata and duplicate handling options. Returns the new book ID.
Instructions
Adds a file (EPUB/PDF/MOBI/AZW3...) to the library. Returns the new id. automerge (optional): 'ignore' | 'overwrite' | 'new_record' to handle duplicates. identifiers e.g. 'isbn:9788491050000'.
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": {
"file_path": "<file_path>"
},
"name": "add_book"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path of the file to add. | |
| authors | No | ||
| title | No | ||
| tags | No | Initial tags, comma-separated. | |
| series | No | ||
| series_index | No | ||
| languages | No | Language code, e.g. 'eng'. | |
| identifiers | No | e.g. 'isbn:9788491050000'. | |
| automerge | No | ignore | overwrite | new_record |