Run a recipe
recipe_runRun validated document recipes locally to produce new PDF or Word outputs, verify goals, and keep inputs unchanged. Destructive steps return a plan for confirmation before execution.
Instructions
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"files": "<files>",
"output": "<output>"
},
"name": "recipe_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| each | No | 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. | |
| lang | No | Language for the step descriptions and messages. | |
| files | Yes | ||
| saved | No | Not available: no saved recipes folder is configured. | |
| engine | No | 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. | |
| output | Yes | 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. | |
| recipe | No | A Hilvana recipe object (see resource hilvana://recipe-schema). Example: {"version":1,"steps":[{"op":"merge"},{"op":"sign","image":"firma.png"}],"goals":{"maxBytes":2000000}} | |
| confirm | No | Required when the recipe has destructive steps, after the user agreed. | |
| overwrite | No | Replace the output if it already exists (never an input). |