get_chapter
Retrieve complete chapter text from a public-domain book using its Gutenberg book ID and chapter number. Chapter 0 covers front matter; use book metadata to find valid chapter range.
Instructions
Full text of one chapter from an indexed book by book_id and chapter number. Chapter 0 is front matter before the first detected heading. Use get_book_metadata for the valid chapter range. Costs $0.005 via x402 (requires WALLET_PRIVATE_KEY, USDC on Base).
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>",
"chapter": "<chapter>"
},
"name": "get_chapter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| book_id | Yes | Gutenberg book id | |
| chapter | Yes | Chapter number (0 = front matter) |