pdf_add_page_numbers
Add page numbers 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": {
"fileBase64": "<fileBase64>",
"position": "<position>"
},
"name": "pdf_add_page_numbers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Format: one of plain, page-of-total, prefixed. | |
| prefix | No | Text before the number when format is prefixed, for example Page . | |
| startAt | No | Number to print on the first page, default 1. | |
| fontSize | No | Font size in points, for example 10. | |
| position | Yes | Position: one of bottom-center, bottom-right, bottom-left, top-center, top-right, top-left. | |
| pageRange | No | Comma-separated pages/ranges to number, e.g. '1,3-5' -- if omitted, numbers every page | |
| fileBase64 | Yes | The input file as a base64 string, without a data: prefix. | |
| skipFirstPage | No | true or false: skip first page. Default false. |