Add page numbers
add_page_numbersAdd page numbers as real text in a chosen corner with a custom format such as "Page {n} of {total}".
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": {
"file": "<file>"
},
"name": "add_page_numbers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The PDF. | |
| start | No | Number of the first numbered page. | |
| format | No | {n} = page number, {total} = page count. Latin characters only. | Page {n} of {total} |
| position | No | b/t = bottom/top, c/r/l = center/right/left. | bc |
| font_size | No | ||
| skip_first_page | No | Do not number the first page (cover). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| info | No | Facts about the PDF (get_pdf_info) or the result (e.g. target_met for compress_pdf). | |
| note | No | Anything the user should know about the result. | |
| text | No | Extracted text (pdf_to_text, ocr_pdf). | |
| files | Yes | Result files. Download them before expires_at; pass file_id to another tool to chain. |