Hilvana
v0.21.0Verifiable PDF recipes on your machine: merge, sign, OCR, redact, compress, prepare KDP books.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
pdf_list List PDFs and images
Lists PDF, Word (.docx) and image files (PNG/JPEG) in an allowed folder, with page counts for PDFs. Does not read content.
| Parameter | Type | Description |
|---|---|---|
folder | string | Folder to list. Defaults to the first allowed folder. |
pdf_inspect Inspect a PDF
Returns structure only: page count, page sizes and rotation, encryption, which metadata fields are set (names only, never their values), signatures, file size, and form fields when there is a form (name, type, pages, options, required, read-only, whether it already has a value; never the values). Never returns text or images. Use form.fields to build a fillForm step.
| Parameter | Type | Description |
|---|---|---|
path * | string |
kdp_check Check a PDF for Amazon KDP
Checks a print interior against Amazon KDP requirements for a paperback or hardcover: page size (trim plus bleed), page count, margins and gutter by page count, embedded fonts, image resolution (300 DPI), transparency, annotations, bookmarks, metadata. Returns the findings by page; never page text or images. Read only.
| Parameter | Type | Description |
|---|---|---|
binding * | string | |
path * | string | The PDF, inside an allowed folder. |
trim * | string | Trim size in inches, e.g. "8.5x11" or "6x9". |
bleed | boolean | True when art reaches the page edge. |
ink | string | |
lang | string |
recipe_plan Validate and explain a recipe
Checks a recipe against the actual files without changing anything: schema, file names, page ranges after each step, and which steps are destructive. Returns the steps in plain language to show the user before running.
| Parameter | Type | Description |
|---|---|---|
files * | array | |
each | boolean | Apply the recipe to each PDF/Word input separately (a batch). Other inputs, like a signature image, are shared. The recipe must not name documents. Results go to the output folder. |
engine | string | Word engine. native: built-in; libreoffice: local LibreOffice install; auto (default): built-in, falling back to LibreOffice if content had to be dropped. All local. |
lang | string | Language for the step descriptions and messages. |
recipe | object | A Hilvana recipe object (see resource hilvana://recipe-schema). Example: {"version":1,"steps":[{"op":"merge"},{"op":"sign","image":"firma.png"}],"goals":{"maxBytes":2000000}} |
saved | string | Not available: no saved recipes folder is configured. |
recipe_run Run a recipe
Runs a recipe locally and writes the result to a NEW file (or, when the recipe ends with split, one new file per part in the output folder), then verifies the goals. Inputs are never modified. If the recipe has destructive steps it returns the plan and asks for confirmation instead of running; set confirm=true only after the user agreed.
| Parameter | Type | Description |
|---|---|---|
files * | array | |
output * | string | Path of the new PDF, inside an allowed folder. Must not be an input. When the recipe ends with a split step, or with each=true, an existing folder for the results instead. |
confirm | boolean | Required when the recipe has destructive steps, after the user agreed. |
each | boolean | Apply the recipe to each PDF/Word input separately (a batch). Other inputs, like a signature image, are shared. The recipe must not name documents. Results go to the output folder. |
engine | string | Word engine. native: built-in; libreoffice: local LibreOffice install; auto (default): built-in, falling back to LibreOffice if content had to be dropped. All local. |
lang | string | Language for the step descriptions and messages. |
overwrite | boolean | Replace the output if it already exists (never an input). |
recipe | object | A Hilvana recipe object (see resource hilvana://recipe-schema). Example: {"version":1,"steps":[{"op":"merge"},{"op":"sign","image":"firma.png"}],"goals":{"maxBytes":2000000}} |
saved | string | Not available: no saved recipes folder is configured. |
word_to_pdf Convert Word to PDF
Converts a Word document (.docx) to a NEW PDF on this computer, with real, selectable text. Returns the page count and any simplifications made (e.g. skipped text boxes). Never uploads the file.
| Parameter | Type | Description |
|---|---|---|
path * | string | The .docx file, inside an allowed folder. |
engine | string | Word engine. native: built-in; libreoffice: local LibreOffice install; auto (default): built-in, falling back to LibreOffice if content had to be dropped. All local. |
lang | string | Language for the step descriptions and messages. |
output | string | Path of the new PDF. Defaults to the same name with .pdf. |
overwrite | boolean |