Bates-number a PDF
pdf_batesStamps sequential Bates numbers with a custom prefix and zero-padding on every PDF page, writing the numbered file locally without sending it over the network.
Instructions
Stamp sequential Bates numbers ({prefix}{zero-padded n}) on every page. Runs entirely on this machine — the file is read and written locally and never sent anywhere.
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>",
"output": "<output>"
},
"name": "pdf_bates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | Color as #RRGGBB (default #000000) | |
| force | No | Replace the output file if it already exists (default: refuse, so existing files are never silently clobbered) | |
| input | Yes | Path to the input PDF | |
| output | Yes | Path to write the numbered PDF | |
| prefix | No | Text before the number (default none) | |
| fontSize | No | Font size in points (default 10) | |
| padWidth | No | Zero-pad width (default 6) | |
| position | No | Corner (default bottom-right) | |
| startNumber | No | First number (default 1) |