Fill a PDF form
fill_pdf_formFill an interactive PDF form's text fields, checkboxes, dropdowns, and radios by field name, with an option to flatten the result. Pass inspectOnly to list the fields first.
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>"
},
"name": "fill_pdf_form"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | PDF as base64, a data URI, or a public URL. Private addresses are refused. 10 MB cap. | |
| values | No | Field name to value. Checkboxes take booleans; dropdowns and radios take one of their options. | |
| flatten | No | Flatten the form so fields become plain page content. | |
| inspectOnly | No | List the form fields without changing anything. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Filled PDF bytes, base64 encoded. | ||
| fields | No | Detected form fields (inspectOnly). | |
| filled | Yes | ||
| mimeType | Yes | ||
| pageCount | Yes |