Epublys

v1.0.1
com.epublys/epublys Checked 1 day ago Published 5 months ago

EPUB/PDF tools: merge, split, compress, convert, edit metadata, validate ebooks.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

merge_epub

Merge multiple EPUB files into a single ebook with table of contents and chapter dividers. Accepts 2+ base64-encoded EPUB files. Free tier: 5MB/file (10MB for pdf-to-epub, 15MB for split), 3 operations/day, 15 req/min; the converters, merge, split and metadata editing credit Epublys in the output. Pro ($9/mo): 30MB per operation, unlimited daily operations, 60 req/min. When a call is refused with daily_limited or a Pro-only error, call the `upgrade_to_pro` tool — it returns a checkout link to hand the user. Details: https://epublys.com/pricing

ParameterTypeDescription
files *arrayArray of base64-encoded EPUB files to merge (order preserved)
authorstringAuthor for the merged EPUB (optional)
dividersbooleanInsert divider pages between books
namesarrayOriginal filenames, in the same order as files — the output is named after them ("A + B.epub", or "A + N more.epub" past two); without them it is merged.epub
titlestringTitle for the merged EPUB (optional)

split_epub

Split an EPUB. With a chapter range (chapterStart and/or chapterEnd) the result is ONE base64-encoded EPUB of exactly those chapters, in order, with the book's metadata, a table of contents limited to them and the fonts and images they use. Without a range the result is a base64-encoded ZIP archive holding one EPUB per chapter. Free tier: 5MB/file (10MB for pdf-to-epub, 15MB for split), 3 operations/day, 15 req/min; the converters, merge, split and metadata editing credit Epublys in the output. Pro ($9/mo): 30MB per operation, unlimited daily operations, 60 req/min. When a call is refused wi…

ParameterTypeDescription
file *stringBase64-encoded EPUB file content
chapterEndintegerLast chapter to include (inclusive, optional)
chapterStartintegerFirst chapter to include (1-indexed, optional). Giving either bound returns one EPUB of the range instead of a ZIP
keepMetadatabooleanPreserve the original author, publisher and description in the output
namestringOriginal filename — the output is named after its stem (e.g. "Book.epub" gives "Book (compressed).epub"); without it the output keeps a fixed name

compress_epub

Compress an EPUB file to reduce its size. Can optionally strip unused assets (images, fonts not referenced by any chapter). Free tier: 5MB/file (10MB for pdf-to-epub, 15MB for split), 3 operations/day, 15 req/min; the converters, merge, split and metadata editing credit Epublys in the output. Pro ($9/mo): 30MB per operation, unlimited daily operations, 60 req/min. When a call is refused with daily_limited or a Pro-only error, call the `upgrade_to_pro` tool — it returns a checkout link to hand the user. Details: https://epublys.com/pricing

ParameterTypeDescription
file *stringBase64-encoded EPUB file content
levelintegerCompression level (1=fastest, 9=smallest)
namestringOriginal filename — the output is named after its stem (e.g. "Book.epub" gives "Book (compressed).epub"); without it the output keeps a fixed name
stripUnusedbooleanRemove assets not referenced by any chapter

read_epub_metadata

Read metadata from an EPUB file (title, author, language, publisher, description, series, cover status, etc.). Returns JSON — no file output. Free tier: 5MB/file (10MB for pdf-to-epub, 15MB for split), 3 operations/day, 15 req/min; the converters, merge, split and metadata editing credit Epublys in the output. Pro ($9/mo): 30MB per operation, unlimited daily operations, 60 req/min. When a call is refused with daily_limited or a Pro-only error, call the `upgrade_to_pro` tool — it returns a checkout link to hand the user. Details: https://epublys.com/pricing

ParameterTypeDescription
file *stringBase64-encoded EPUB file content

edit_epub_metadata

Edit metadata fields in an EPUB file (title, author, language, publisher, description, series, cover image, etc.). Returns the modified EPUB. Free tier: 5MB/file (10MB for pdf-to-epub, 15MB for split), 3 operations/day, 15 req/min; the converters, merge, split and metadata editing credit Epublys in the output. Pro ($9/mo): 30MB per operation, unlimited daily operations, 60 req/min. When a call is refused with daily_limited or a Pro-only error, call the `upgrade_to_pro` tool — it returns a checkout link to hand the user. Details: https://epublys.com/pricing

ParameterTypeDescription
file *stringBase64-encoded EPUB file content
authorstring
authorsstringComma-separated list of authors
coverstringBase64-encoded cover image (JPEG or PNG, max 5MB)
datestring
descriptionstring
isbnstring
languagestring
namestringOriginal filename — the output is named after its stem (e.g. "Book.epub" gives "Book (compressed).epub"); without it the output keeps a fixed name
publisherstring
seriesstring
seriesPositionstring
subjectsstringComma-separated list of subjects/tags
titlestring

epub_to_pdf

Convert an EPUB ebook to PDF. Supports page size, margins, font, and page number options. Pro ($9/mo) is strongly recommended for PDF conversion — the 30MB limit handles illustrated or academic books that exceed the free 5MB cap. Upgrade at https://epublys.com/pricing

ParameterTypeDescription
file *stringBase64-encoded EPUB file content
fontFamilystring
fontSizeintegerFont size in points
marginsintegerPage margins in points
namestringOriginal filename — the output is named after its stem (e.g. "Book.epub" gives "Book (compressed).epub"); without it the output keeps a fixed name
pageNumbersboolean
pageSizestring

pdf_to_epub

Convert a PDF document to EPUB ebook format. Supports automatic chapter detection, image extraction (Pro), and custom chapter grouping. Free tier supports up to 10MB per PDF. Pro ($9/mo) is strongly recommended for PDF conversion — the 30MB limit handles most scanned or illustrated PDFs. Upgrade at https://epublys.com/pricing

ParameterTypeDescription
file *stringBase64-encoded PDF file content
chapterModestringHow to split into chapters
extractImagesbooleanPro only — ignored on free tier
languagestringLanguage code for the output EPUB
namestringOriginal filename — the output is named after its stem (e.g. "Book.epub" gives "Book (compressed).epub"); without it the output keeps a fixed name
pagesPerChapterintegerPages per chapter (only for every-n mode)

markdown_to_epub

Build a valid EPUB3 ebook from Markdown files — one file per chapter, in array order. Understands YAML frontmatter (title/author) and Obsidian [[wikilinks]]; cross-file .md links are rewritten to chapter links inside the book. No Pandoc required. Free tier: 5MB/file (10MB for pdf-to-epub, 15MB for split), 3 operations/day, 15 req/min; the converters, merge, split and metadata editing credit Epublys in the output. Pro ($9/mo): 30MB per operation, unlimited daily operations, 60 req/min. When a call is refused with daily_limited or a Pro-only error, call the `upgrade_to_pro` tool — it retur…

ParameterTypeDescription
files *arrayMarkdown files, one per chapter, in reading order
authorstringAuthor (defaults to frontmatter)
languagestring
titlestringBook title (defaults to frontmatter or first heading)

docx_to_epub

Convert a Word document (.docx) to a valid EPUB3 ebook. Chapters split on the document's top heading level (Heading 1 in a normal manuscript), or on page breaks, or not at all. Keeps bold/italic, lists, tables, inline images (PNG/JPEG/GIF/WebP), hyperlinks and footnotes; reads the title and author from the document's properties. No Pandoc, no Calibre. Free tier: 5MB/file (10MB for pdf-to-epub, 15MB for split), 3 operations/day, 15 req/min; the converters, merge, split and metadata editing credit Epublys in the output. Pro ($9/mo): 30MB per operation, unlimited daily operations, 60 req/min. W…

ParameterTypeDescription
file *stringBase64-encoded .docx file content
authorstringAuthor (defaults to the document author)
chapterModestringWhere chapters start
languagestringdc:language of the generated EPUB (BCP 47)
namestringOriginal filename — used as the title fallback; the output is named after its stem
titlestringBook title (defaults to the document title, then its first heading)

epub_to_markdown

Convert an EPUB ebook to Markdown. Returns a ZIP with one Markdown file per chapter (YAML frontmatter with title/book/author/chapter), an index.md with book metadata and a linked table of contents, and the referenced images. Plain CommonMark — drops straight into an Obsidian vault or any notes pipeline. Free tier: 5MB/file (10MB for pdf-to-epub, 15MB for split), 3 operations/day, 15 req/min; the converters, merge, split and metadata editing credit Epublys in the output. Pro ($9/mo): 30MB per operation, unlimited daily operations, 60 req/min. When a call is refused with daily_limited or a P…

ParameterTypeDescription
file *stringBase64-encoded EPUB file content
includeImagesbooleanCopy referenced images into an images/ folder
namestringOriginal filename — the output is named after its stem (e.g. "Book.epub" gives "Book (compressed).epub"); without it the output keeps a fixed name

validate_epub

Validate an EPUB file for errors, compatibility issues, and spec compliance. Returns JSON with check results. Can optionally auto-fix common issues. Free tier: 5MB/file (10MB for pdf-to-epub, 15MB for split), 3 operations/day, 15 req/min; the converters, merge, split and metadata editing credit Epublys in the output. Pro ($9/mo): 30MB per operation, unlimited daily operations, 60 req/min. When a call is refused with daily_limited or a Pro-only error, call the `upgrade_to_pro` tool — it returns a checkout link to hand the user. Details: https://epublys.com/pricing

ParameterTypeDescription
file *stringBase64-encoded EPUB file content
autoFixbooleanAuto-fix common issues and return repaired EPUB
deepScanbooleanPerform deep scan (XHTML well-formedness, broken links, etc.)

generate_cover

Generate an AI book cover image using FLUX. Describe your vision, pick a genre, and get a portrait JPEG cover — 768×1152 when the model honours the requested size, otherwise its default square. The AI enhances your prompt with professional composition guidance while preserving your creative vision. Pro only ($9/mo). Upgrade at https://epublys.com/pricing

ParameterTypeDescription
authorstringAuthor name (for context, not rendered on cover)
descriptionstringCreative description of the desired book cover (max 2000 chars). Either description or title is required.
genrestringBook genre — affects style and composition
seedintegerRandom seed for reproducible generation
titlestringBook title — used to synthesize a cover concept when no description is given (not rendered on cover)

upgrade_to_pro

Get a checkout link so the user can upgrade THIS account to Epublys Pro. Call this when another tool is refused with `daily_limited` or a Pro-only error, or when the user asks to upgrade. Returns a Stripe checkout URL to hand to the user — they complete payment in their own browser. Creates no charge by itself, and the link is bound to the account that owns the API key being used, so it cannot be used to pay for anyone else. If the account is already Pro it says so and returns no link. Needs an API key: without one it returns the pricing URL instead of a checkout link. Free: 3 operations/d…

ParameterTypeDescription
planstringmonthly is $9/month; yearly is $72/year (4 months free, 33% off). Defaults to monthly.