add_book_to_library
Add a catalog book to your library, assigning a shelf: reading, want, read, or dnf. Calling again with a different status moves the book to the new shelf.
Instructions
Add a catalog book to the user's library. Idempotent upsert — calling again with a different status moves the book to that shelf rather than erroring. When to use: put a catalog book (book_id from search_books) onto a shelf for the first time. To edit an existing entry's status/rating/review/progress use update_library_book; to take a book off entirely use remove_book_from_library. Requires SANSFICTION_TOKEN (a bearer token from https://sansfiction.com/docs/agents).
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": {
"book_id": "<book_id>"
},
"name": "add_book_to_library"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Shelf to place the book on. Default 'want' (to-read). | |
| book_id | Yes | Catalog book UUID (the `id` from search_books). | |
| edition_id | No | Optional specific edition UUID to associate with this library entry. |