Fill PDF Form
fill-pdf-formFill form fields of a PDF by their "name" (from "read-pdf-form" or "visualize-pdf-form") and get the filled PDF. Fields not given keep their value. Calculated fields like totals are updated afterwards, and values are shown in the field's display format (like 1.234,50 or a date). Returns the file URL and "calculations": the updated fields and the calculated fields whose custom script could not be run.
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": {
"file": "<file>",
"fields": "<fields>"
},
"name": "fill-pdf-form"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Publicly reachable URL of the PDF file to fill. | |
| async | No | Run the action asynchronously and return a job id instead of the result. Poll "check-job-status" or set "webhook_url" to receive a callback. | |
| fields | Yes | The fields to fill. | |
| flatten | No | Merge the filled fields into the page content, so they cannot be changed anymore. | |
| webhook_url | No | Callback URL invoked when an async job finishes. Only used when "async" is true. |