Place clip in a corner (picture-in-picture)
place_clip_in_cornerScale a video clip to a percentage of the sequence width and position it in a chosen corner with a pixel margin to create picture-in-picture layouts, accounting for rotation and crop.
Instructions
Make a picture-in-picture: scale a video clip so its width is size percent of the sequence width, and move it into a corner with a margin in pixels. Put the clip on a track above the main picture. Rotation and crop are taken into account. Returns the clip's transform and bounding box.
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": {
"corner": "<corner>"
},
"name": "place_clip_in_corner"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Clip width as a percent of the sequence frame width. Default 30. | |
| corner | Yes | Which corner of the frame. | |
| margin | No | Gap between the clip and the frame edges, in sequence pixels. Default 40. | |
| clip_id | No | Stable clip id (from get_sequence_structure / list_clips). Preferred. | |
| clip_index | No | 0-based index of the clip in its track's clip list, as reported by list_clips / get_sequence_structure. Usually time order, but a moved clip can keep its old index, and indices shift after edits: prefer clip_id. | |
| track_type | No | Used with track_index + clip_index when clip_id is not given. Default "video". | |
| sequence_id | No | Stable sequence id (from list_sequences). Omit to use the active sequence. | |
| track_index | No | 0-based track index (0 = V1 or A1). | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. |