watermark
Add a text label to an image and save as a new file, leaving the original untouched. Customize position, color, opacity, font size, and padding for precise watermark placement.
Instructions
Burn a text label onto an image and write it to a NEW file (source unchanged). Configure placement (position), color (hex, e.g. #ffffff), opacity (0-1, default 0.6), font size, and padding. The label is drawn with an alpha channel so it blends over the image. Returns the output path and the effective position.
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": {
"path": "<path>",
"out": "<out>",
"text": "<text>"
},
"name": "watermark"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | Yes | Output image path. A new file is created; the source is left untouched. | |
| path | Yes | Source image path. | |
| text | Yes | The watermark text to draw. | |
| color | No | Text color as hex, e.g. #ffffff (default white). | |
| opacity | No | Text opacity 0-1 (default 0.6). | |
| padding | No | Margin in pixels between the text and the chosen edge (default 16). | |
| position | No | Anchor: top-left, top-right, bottom-left, bottom-right, or center. Default bottom-right. | |
| font_size | No | Font size in pixels (auto-sized if omitted). |