Watermark PDF
watermark_pdfApply a grey diagonal text watermark to every page of a PDF and save the result as a new copy, leaving the original unchanged.
Instructions
Save a copy of a PDF with a grey diagonal text watermark (like "DRAFT" or "CONFIDENTIAL") on every page. Latin letters only here; other scripts return an error pointing to the website. Returns the saved path; the input is not changed.
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": "watermark_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the file (absolute, or relative to the working directory). | |
| text | Yes | The watermark text. | |
| output | No | Where to save the result. Defaults to a new file next to the input. | |
| opacity | No | 0.05 (faint) to 1 (solid). Default 0.2. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | Anything the output does not carry over from the input. | |
| summary | Yes | One line describing the result. | |
| written | Yes | Paths of the files written, in order. |