pdf_watermark
Add a text watermark to a 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": {
"fileBase64": "<fileBase64>",
"text": "<text>"
},
"name": "pdf_watermark"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Watermark text, for example CONFIDENTIAL. | |
| color | No | Text colour, 6-digit hex. Default 808080 | |
| layer | No | above (default) draws over the page; behind draws under the page's own content so text stays dark (a full-page scan or solid background hides it) | |
| opacity | No | 0.05 to 1. Default 0.4 | |
| fontSize | No | Points, 6 to 400. Default: sized automatically to fill the page | |
| position | No | Position: one of center, top-left, top-right, bottom-left, bottom-right, tiled. | |
| fileBase64 | Yes | The input file as a base64 string, without a data: prefix. | |
| rotationDegrees | No | Degrees, default 45 (0 is horizontal) |