add_watermark
Add a watermark image to a video, specifying position, opacity, and margin. Supports custom output path.
Instructions
为视频添加水印
Args:
input_path: 输入视频文件路径
watermark_path: 水印图片路径
output_path: 输出视频文件路径(可选)
position: 水印位置(top-left, top-right, bottom-left, bottom-right, center)
opacity: 水印透明度(0.0-1.0)
margin: 水印边距像素
Returns:
添加结果信息
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>",
"watermark_path": "<watermark_path>"
},
"name": "add_watermark"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | ||
| watermark_path | Yes | ||
| output_path | No | ||
| position | No | bottom-right | |
| opacity | No | ||
| margin | No |