fill_form_multipage
Fill a multi-page PDF form, iterating page-by-page for reliability.
WORKFLOW: 1) Call list_form_fields first to get exact field names and their x/y positions.
2) Use position coordinates to confirm which field is which — higher y = higher on page.
3) Pass exact field names from list_form_fields here. Never guess field names.
Use when the PDF has more than 5 pages or fields spanning multiple pages (rental applications,
tax packets, multi-section HR forms). Prefer this over fill_form for any complex/long document.
Returns ok:false with unknown_fields if ALL provided field names are invalid.
Returns ok:true with a warnings.unknown_fields list if SOME names are invalid (partial fill).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_path": "<pdf_path>",
"field_values": "<field_values>",
"output_path": "<output_path>"
},
"name": "fill_form_multipage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | Your FormFill API key (get one at formfill.plenitudo.ai). | |
| pdf_path | Yes | Absolute path to the source PDF file. | |
| output_path | Yes | Absolute path where the filled PDF will be saved. | |
| field_values | Yes | Map of field names to values. Use list_form_fields to discover field names. | |
| payment_proof | No | x402 payment proof (tx hash). Alternative to api_key for pay-per-use. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |