Propose trimming to a length
edit_trim_to_lengthUse this when the user names a length ("make it 60 seconds") or wants a short. You choose what stays: read assets_transcript_get, then pass keepRanges (every other spoken sentence is cut) or, alone, preferCutRanges (only those go), in source seconds. It never decides what matters, and with neither it cuts nothing. details.plan reports the projected length against the target.
Do not use for removing particular words (edit_cut_ranges).
Next: Returns proposals[] (the same shape as sigma_turn); nothing changes yet. Show the user summary, then call sigma_apply with proposals[0].proposal unchanged (it is signed). sigma_apply returns turnIds that sigma_revert takes back. An empty proposals means nothing needed changing; summary says why. Apply or drop each proposal before requesting the next edit; if sigma_apply says a proposal is stale, call the same edit_ tool again for a fresh one.
Free: a deterministic dry run of a composition revision, no model and no engine; your own model does the planning.
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": {
"targetDurationSec": "<targetDurationSec>",
"projectId": "<projectId>"
},
"name": "edit_trim_to_length"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | No | The user's words for this edit; shown with the proposal and restored if it is reverted. | |
| projectId | Yes | The project to edit. | |
| workspace | No | Workspace slug. Omit to use the workspace your credential is bound to. An API key names its own workspace, and a value that disagrees with it is refused rather than ignored. | |
| keepRanges | No | The stretches you chose to keep; every other spoken sentence is cut. | |
| compositionId | No | The composition to edit; omit for the project's current one. | |
| preferCutRanges | No | Without keepRanges: exactly the stretches to cut, such as a tangent. | |
| targetDurationSec | Yes | The length the edit should end up, in seconds of finished video (at least 3). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||