Fit a region
mask_fitFrames a face or object rectangle to fill the sequence or a target box by computing and applying Motion scale and position, static or keyframed between two rects.
Instructions
Frame a rectangle of the clip (face, object) to fill the sequence frame or a target box: computes Motion scale and position and applies them (static, or keyframed between from and to rects). Rects are in pixels of the clip as it shows at 100% scale centered.
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": {
"clips": "<clips>",
"rect": "<rect>"
},
"name": "mask_fit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | ||
| rect | Yes | ||
| clips | Yes | id, [ids] or {tracks,name_regex,kind,selected,at,start_min,start_max,every_nth,offset,limit} | |
| padding | No | Fraction around the rect, default 0.1 | |
| project | No | ||
| to_rect | No | Animate from rect (clip start) to to_rect (clip end) | |
| sequence | No | Sequence id/name (default: active) | |
| expected_project_path | No |