Fill a PDF form
pdf_form_fillFill the fields of a fillable PDF form and return the completed form. Input: the PDF's contents as a base64-encoded string, plus a fields object mapping field names to values. Unknown field names are rejected with a list of the form's real fields. Checkboxes accept true/false; radio groups take the chosen option's name; dropdowns take one of their defined choices. Set flatten=true to bake values in so they can no longer be edited. Returns a download_url for the filled PDF (link valid 24 hours). Costs 1 credit; 5 free calls per month.
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": {
"pdf_base64": "<pdf_base64>",
"fields": "<fields>"
},
"name": "pdf_form_fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | Object mapping the form's field names to the values to fill in, e.g. {"full_name": "Jane Doe", "agree": "true"}. Unknown names are rejected with the form's real field list. | |
| flatten | No | If true, bake the filled values into the page so the form can no longer be edited (default false). | |
| pdf_base64 | Yes | The fillable PDF form's contents as a base64-encoded string (max 25 MB / 500 pages). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||