pdf_fill_form
Fill PDF form fields including text, checkboxes, dropdowns, radio, and list-box inputs. Supports non-Latin text with a custom font file.
Instructions
Fill form fields in a PDF. Supports text, checkbox, dropdown, radio, and list-box (multi-select) fields. Provide fontPath for non-Latin text (Arabic, CJK, etc.).
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": {
"filePath": "<filePath>",
"fields": "<fields>",
"outputPath": "<outputPath>"
},
"name": "pdf_fill_form"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the PDF file with form fields | |
| fields | Yes | Object mapping field names to values. Strings for text/dropdown/radio, booleans for checkboxes. | |
| outputPath | Yes | Absolute path for the filled output PDF | |
| flatten | No | Flatten form fields after filling (makes them non-editable). Defaults to false. | |
| fontPath | No | Absolute path to a .ttf/.otf font file for non-Latin character support. |