Add text watermark
add_watermarkStamp a text watermark (e.g. CONFIDENTIAL, DRAFT) on all or selected pages. Text must use Latin characters (Western European).
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>",
"text": "<text>"
},
"name": "add_watermark"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The PDF. | |
| text | Yes | Watermark text (Latin characters). | |
| color | No | Hex colour, e.g. "#d0312d". | #d0312d |
| pages | No | Pages to watermark: "all", or numbers and ranges such as "1-3, 5, 8-end" ("end" = last page). | all |
| layout | No | diagonal center, center, tiled pattern, or bottom right. | diagonal |
| opacity | No | Opacity in percent. | |
| font_size | No |
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. |