Book details and chapters
get_bookRetrieve a Project Gutenberg book's metadata and table of contents—including chapters, acts, or scenes with start and end lines—to choose a chapter before reading passages.
Instructions
Get one Project Gutenberg book's metadata (title, authors, languages, subjects, summary) and its table of contents: every detected chapter, letter, stave, act or scene with start and end line numbers. Call this before read_passage to pick a chapter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Project Gutenberg book id, e.g. 2701 (Moby Dick) or 1342 (Pride and Prejudice). Find ids with search_books. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| url | Yes | ||
| note | No | ||
| title | Yes | ||
| authors | Yes | ||
| summary | No | ||
| chapters | Yes | Detected table of contents with line offsets. Empty when the book has no recognizable headings. | |
| subjects | Yes | ||
| languages | Yes | ||
| line_count | Yes | Lines in the book text after the license header and footer are removed. All line numbers refer to this text. | |
| attribution | Yes | Credit line to keep with any quoted text. | |
| bookshelves | Yes | ||
| release_date | No | Project Gutenberg release date, from the file header. | |
| chapter_count | Yes | ||
| download_count | No | ||
| metadata_source | Yes | text_header means the catalog was unavailable and title/author come from the book file. |