add_watermark
Add text or image watermarks to PDF pages to mark documents as confidential, draft, or approved. Control placement, opacity, rotation, color, and whether the watermark sits above or below content.
Instructions
Add a text watermark ("CONFIDENTIAL", "DRAFT") or an image (a logo) to pages.
position: center (default) or top-/bottom- left/center/right; a corner with opacity=1 makes a stamp such as "APPROVED". opacity 0-1 (default 0.2); rotation in degrees (default 45 at the center, 0 elsewhere); font_size auto-fits if omitted; scale is the image width as a share of the page. color: #rrggbb, black, gray, red, blue, green. layer: over (default) or under the content. Text is Latin characters only. Needs the owner password if the PDF forbids changes. Signed PDFs are refused.
Any password argument can be "ask": the user then types it on a local page, so it never passes through the chat.
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_path": "<input_path>"
},
"name": "add_watermark"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| color | No | gray | |
| layer | No | over | |
| pages | No | ||
| scale | No | ||
| opacity | No | ||
| password | No | ||
| position | No | center | |
| rotation | No | ||
| font_size | No | ||
| overwrite | No | ||
| image_path | No | ||
| input_path | Yes | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | Yes | ||
| output | Yes | ||
| password_protected | Yes | ||
| user_password_changed | Yes | ||
| permissions_restricted | Yes |