komga_books
Handle Komga book operations: retrieve details, search with filters, update metadata, track read progress, list duplicates, and access nearby books.
Instructions
komga books operations on Komga. Pass operation and an arguments dict matching that operation's parameters.
analyze_book(book_id) — Analyze a book. Requires ADMIN.
get_book(book_id) — Get book details, media information, metadata, and read progress.
get_book_next(book_id) — Get the next book in the series.
get_book_pages(book_id) — List page metadata for a book without downloading page images.
get_book_previous(book_id) — Get the previous book in the series.
get_book_readlists(book_id) — List readlists containing a book.
get_books_ondeck(library_id=None, page=0, size=50, sort=None, unpaged=False) — List books currently on deck for the authenticated user.
get_duplicate_books(page=0, size=50, sort=None, unpaged=False) — List duplicate books by file hash. Requires ADMIN.
get_latest_books(library_id=None, page=0, size=50, sort=None, unpaged=False) — List recently added or updated books.
list_book_thumbnails(book_id) — List thumbnail metadata for a book; does not download image bytes.
mark_book_unread(book_id) — Mark a book as unread.
refresh_book_metadata(book_id) — Re-import embedded metadata for a book. Requires ADMIN.
search_books(full_text='', condition=None, page=0, size=50, sort=None, unpaged=False) — Search books using Komga's BookSearch body. Structured condition leaves are keyed by fields such as libraryId, collectionId, title, tag, genre, publisher, language, ageRating, readStatus, seriesStatus, mediaStatus, author, deleted, complete, oneShot, releaseDate, numberSort, and seriesId. Each leaf contains an operator object. Use string operators is, isNot, beginsWith, doesNotBeginWith, contains, doesNotContain, endsWith, or doesNotEndWith; booleans use isTrue/isFalse; dates use after/before/isInTheLast/isNotInTheLast/isNull/isNotNull; and group conditions with anyOf (OR) or allOf (AND). Read-status values are UNREAD, READ, IN_PROGRESS; media-status values are UNKNOWN, ERROR, READY, UNSUPPORTED, OUTDATED; series-status values are ENDED, ONGOING, ABANDONED, HIATUS.
set_book_read_progress(book_id, page=None, completed=None) — Set a book's read position. Supply page and/or completed.
update_book_metadata(book_id, patch) — Update book metadata; null unsets a field and omission keeps it. Requires ADMIN.
update_books_metadata_bulk(updates) — Bulk update book metadata using a map of book ID to patch. Requires ADMIN.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arguments | No | ||
| operation | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |