pdf_fill_form
Fill a PDF form's fields — sets text, checkbox, dropdown, radio and option-list values and returns the filled PDF as base64 in the first text item, optionally flattened so it can no longer be edited. Only the fields you name are changed; every other field keeps its value. To clear a field send null (or an empty string). The second text item is a JSON report: fieldsSet, fieldsNotSet (name and reason) and fieldsUntouched
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": {
"fileBase64": "<fileBase64>"
},
"name": "pdf_fill_form"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| values | No | Field name -> value. Text/dropdown/radio: a string; option list: a string or an array of strings; checkbox: true/false. null or an empty string clears the field. Fields not named here are left untouched | |
| checked | No | Field name -> checked state, for checkbox fields (only the named checkboxes change) | |
| flatten | No | If true, bakes the values in and removes the ability to edit them further | |
| fileBase64 | Yes | The PDF file, base64-encoded |