Write text or stamp images onto a PDF
annotate_pdfFor PDFs without fillable fields (scans, flat forms): place text and PNG/JPG images (e.g. a signature) at positions on pages and return the new PDF. Coordinates are PDF points from the TOP-LEFT of the page (72 points = 1 inch). Get page sizes from inspect_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": {
"items": "<items>"
},
"name": "annotate_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Things to place. | |
| file_id | No | A file id from POST /api/v1/files or an earlier result. Use this, template_id or pdf_base64. | |
| file_name | No | Name for the returned file (default annotated.pdf). | |
| pdf_base64 | No | The PDF, base64 encoded (max 15 MB). Prefer file_id for big files. | |
| template_id | No | A template id from list_templates. |