document_workflow
Run declarative multi-step PDF workflows from presets or TOML/JSON recipes, transforming an input document into a specified output file.
Instructions
Execute a declarative multi-step document workflow pipeline
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": {
"input": "<input>",
"output": "<output>"
},
"name": "document_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Path to input PDF file | |
| output | Yes | Path to output PDF file | |
| preset | No | Preset workflow ID (e.g. preset-legal-discovery, preset-clean-scan, preset-redact-protect) | |
| recipe | No | Path to TOML .ppflow / JSON recipe, raw JSON, or multiline TOML | |
| name_template | No | Optional basename template; output is then a directory |