fill_pdf_form
Populate interactive PDF forms (AcroForms) with text, numbers, or checkbox values, with optional flattening to lock completed fields.
Instructions
Fills interactive PDF forms (AcroForms) with text, numbers, or checkboxes, with optional form flattening.
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": "<pdf>",
"fields": "<fields>"
},
"name": "fill_pdf_form"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | Interactive PDF document as a base64 data URI or public http/https URL | ||
| fields | Yes | Key-value map of form field names to their values (e.g. {"client_name": "Acme", "agreed": true}) | |
| flatten | No | Whether to flatten form fields to prevent further editing (default: true) | |
| output_filename | No | Output filename (default: "filled_form.pdf") | filled_form.pdf |