Hilvana

v0.21.0
io.github.gethilvana/hilvana Checked 4 hours ago Published 53 minutes ago

Verifiable 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.

ParameterTypeDescription
folderstringFolder 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.

ParameterTypeDescription
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.

ParameterTypeDescription
binding *string
path *stringThe PDF, inside an allowed folder.
trim *stringTrim size in inches, e.g. "8.5x11" or "6x9".
bleedbooleanTrue when art reaches the page edge.
inkstring
langstring

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.

ParameterTypeDescription
files *array
eachbooleanApply 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.
enginestringWord engine. native: built-in; libreoffice: local LibreOffice install; auto (default): built-in, falling back to LibreOffice if content had to be dropped. All local.
langstringLanguage for the step descriptions and messages.
recipeobjectA Hilvana recipe object (see resource hilvana://recipe-schema). Example: {"version":1,"steps":[{"op":"merge"},{"op":"sign","image":"firma.png"}],"goals":{"maxBytes":2000000}}
savedstringNot 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.

ParameterTypeDescription
files *array
output *stringPath 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.
confirmbooleanRequired when the recipe has destructive steps, after the user agreed.
eachbooleanApply 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.
enginestringWord engine. native: built-in; libreoffice: local LibreOffice install; auto (default): built-in, falling back to LibreOffice if content had to be dropped. All local.
langstringLanguage for the step descriptions and messages.
overwritebooleanReplace the output if it already exists (never an input).
recipeobjectA Hilvana recipe object (see resource hilvana://recipe-schema). Example: {"version":1,"steps":[{"op":"merge"},{"op":"sign","image":"firma.png"}],"goals":{"maxBytes":2000000}}
savedstringNot 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.

ParameterTypeDescription
path *stringThe .docx file, inside an allowed folder.
enginestringWord engine. native: built-in; libreoffice: local LibreOffice install; auto (default): built-in, falling back to LibreOffice if content had to be dropped. All local.
langstringLanguage for the step descriptions and messages.
outputstringPath of the new PDF. Defaults to the same name with .pdf.
overwriteboolean