PDF to EPUB
pdf_to_epubConvert PDF text into EPUB 3 e-books, splitting chapters by headings or pages so PDFs read well on e-readers.
Instructions
Convert a PDF's text into an EPUB 3 e-book, split into chapters at headings (or every few pages).
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": {
"input": "<input>",
"output": "<output>"
},
"name": "pdf_to_epub"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Path to a PDF inside an allowed folder (absolute, or relative to the first allowed folder). | |
| split | No | headings | |
| title | No | ||
| author | No | ||
| output | Yes | Path for the new e-book (ending in .epub), inside an allowed folder. Must not exist yet. | |
| language | No | Language tag, such as en or pt-BR. | en |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | Yes | ||
| output | Yes | ||
| chapters | Yes |