pdf_add_form_field
Add a form field to a PDF page by defining its type, name, position, and size. Create fillable forms with customizable field options.
Instructions
Add a form field to a PDF.
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>",
"page_number": "<page_number>",
"field_type": "<field_type>",
"field_name": "<field_name>",
"x": "<x>",
"y": "<y>",
"width": "<width>",
"height": "<height>"
},
"name": "pdf_add_form_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| width | Yes | ||
| height | Yes | ||
| options | No | ||
| pdf_path | Yes | ||
| field_name | Yes | ||
| field_type | Yes | ||
| page_number | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |