interact_with_book_tool
Extract table of contents, search for keywords, or retrieve text from specific page ranges using a book's Libgen MD5 hash.
Instructions
Extract text or interact with a book using its Libgen MD5 hash. action:
'toc': Returns the table of contents.
'search': Searches for 'keyword' and returns only pages where it is found.
'pages': Extracts text strictly from 'start_page' to 'end_page'.
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": {
"md5": "<md5>"
},
"name": "interact_with_book_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| md5 | Yes | ||
| action | No | toc | |
| keyword | No | ||
| end_page | No | ||
| start_page | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |