Fit clip to frame
fit_clip_to_frameScales a video clip uniformly to fit inside the sequence frame without cutting off content, adding letterbox or pillarbox, and centers it by default.
Instructions
Scale a video clip uniformly so the whole picture fits inside the sequence frame (letterbox/pillarbox, nothing cut off), and centre it (position and anchor to the centres) unless center=false. The scale is computed from the clip's source frame size and the sequence frame size. Returns the scale used and the clip's transform.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "fit_clip_to_frame"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| center | No | Also centre the clip. Default true. | |
| 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. |