Overlay image / video
overlayComposite a watermark image or picture-in-picture video onto a base video, with selectable corner/center position, scale, and image opacity for overlaying.
Instructions
Composite a watermark image or a picture-in-picture video on top of the base video. Choose a corner/center position, optional scale (as a fraction of base width), and opacity for images.
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": "<input>",
"overlayPath": "<overlayPath>",
"output": "<output>"
},
"name": "overlay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Path to the base video. | |
| scale | No | Overlay width as a fraction of the base video width (0-1). | |
| output | Yes | Path for the composited output video. | |
| opacity | No | Overlay opacity 0-1 (applies to image overlays). | |
| position | No | Where to place the overlay. | bottom-right |
| overwrite | No | Overwrite the output file if it already exists. | |
| overlayPath | Yes | Path to the overlay image or video. |