pdf_page_numbers
Add page numbers to every page of a PDF. Customize position, prefix/suffix, and starting number.
Instructions
Add page numbers to every page. Supports various positions, custom prefix/suffix, and starting number.
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>",
"outputPath": "<outputPath>"
},
"name": "pdf_page_numbers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | Color (default: dark gray) | #4d4d4d |
| margin | No | Edge distance in points (default: 30) | |
| prefix | No | Prefix text (e.g. "Page ") | |
| suffix | No | Suffix text (e.g. " of 50") | |
| filePath | Yes | PDF file path | |
| fontSize | No | Font size (default: 10) | |
| position | No | Position (default: bottom-center) | bottom-center |
| outputPath | Yes | Output path | |
| startNumber | No | Starting number (default: 1) |