pdf_create_form_field
Add a text or checkbox form field to a specified PDF page, set its position and size, and save the updated PDF to an output path.
Instructions
Add a new form field (text or checkbox) to a PDF page.
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": {
"input": "<input>",
"field_name": "<field_name>",
"field_type": "<field_type>",
"page": "<page>",
"x": "<x>",
"y": "<y>",
"width": "<width>",
"height": "<height>",
"output": "<output>"
},
"name": "pdf_create_form_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X coordinate. | |
| y | Yes | Y coordinate. | |
| page | Yes | Page number. | |
| input | Yes | The input PDF file path. | |
| width | Yes | Width. | |
| height | Yes | Height. | |
| output | Yes | The output PDF file path. | |
| field_name | Yes | Field name. | |
| field_type | Yes | Field type. |