Fill PDF form fields
fill_pdfFill the fillable (AcroForm) fields of a PDF and return the finished PDF. values maps field name -> text (text/dropdown/radio) or true/false (checkbox). flatten (default true) bakes the answers into the page so they cannot be edited.
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": {
"values": "<values>"
},
"name": "fill_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| values | Yes | Field name -> value. Use names from inspect_pdf. | |
| file_id | No | A file id from POST /api/v1/files or an earlier result. Use this, template_id or pdf_base64. | |
| flatten | No | Bake the answers into the page (default true). | |
| file_name | No | Name for the returned file (default filled.pdf). | |
| pdf_base64 | No | The PDF, base64 encoded (max 15 MB). Prefer file_id for big files. | |
| template_id | No | A template id from list_templates. |