Ebook File Check

v0.5.4
com.powmcp/epub-check Checked 8 hours ago Published 2 months ago

Run EPUBCheck for EPUB specification errors and compare two exports.

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

ebook_check

Validates one EPUB (a directly hosted public URL or a file attached in chat) against the EPUB 2/3 specification using a pinned local EPUBCheck 5.4.0 engine run in a no-network sandbox. Each call takes exactly one source: the url parameter or the file attachment, never both. Returns the automated verdict: pass boolean, EPUB version, message counts by severity (fatal/error/warning/usage), findings grouped most-severe-first with EPUBCheck rule id (RSC-005, OPF-014, …), file path and line/column, plus a structural inventory (spine items, media types, remote-resource state), SHA-256 of the exact…

ParameterTypeDescription
fileobjectAn EPUB file attached in chat, up to 25 MB, validated from its exact bytes. Provide either this attachment or url, never both.
maxMessagesintegerMaximum spec findings to return, most severe first (default 200); raise it to see more of a very noisy book, lower it to keep the answer short
urlstringDirect public HTTP(S) URL to the EPUB file bytes, including the protocol, not a ChatGPT file id, local path, cloud-drive share, archive/viewer page, or authenticated URL needing a login. Each call tak…

ebook_compare

Runs the identical pinned EPUBCheck 5.4.0 validation over exactly two EPUB builds (directly hosted public URLs or files attached in chat, baseline first, revised second) sequentially under one shared 110-second deadline, then reports which spec findings regressed or were fixed between them. Returns per-build hashes, EPUB versions, pass verdicts and severity counts, a regressions list (rules that appear or worsen in the revised build) and a fixed list (rules removed or reduced), and a ranking by pass state then fewer blocking findings. Use for 'did my re-export get worse', 'which build has fewe…

ParameterTypeDescription
filesarrayExactly two distinct EPUB builds attached in chat: the baseline build first, the revised build second. Provide either these attachments or urls, never both.
maxMessagesintegerMaximum findings to collect per build for the comparison (default 150)
urlsarrayExactly two distinct direct public HTTP(S) EPUB URLs: the baseline build first, the revised build second. Provide either these URLs or files, never both. STRICT RULE: Ebook compare failed: provide ei…