Tools

PDF to EPUB

Convert a PDF's text into an EPUB 3 e-book, split into chapters at headings (or every few pages).

Same tool as the MCP server's pdf_to_epub. Runs before responding; for long work, POST /v1/jobs instead.

post/v1/tools/pdf_to_epub

Request

  • Base URL: http://127.0.0.1:7341
  • URL: http://127.0.0.1:7341/v1/tools/pdf_to_epub
  • Auth: HTTP bearer

Request body

inputstring required

Path to a PDF inside an allowed folder (absolute, or relative to the first allowed folder).

titlestring
authorstring
languagestring

Language tag, such as en or pt-BR.

split'headings' | 'pages'
outputstring required

Path for the new e-book (ending in .epub), inside an allowed folder. Must not exist yet.

Response

The result. Any new files are written inside the allowed folders.

outputstring required
bytesinteger required
chaptersinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.