Shift markers in time
shift_markersMove all or filtered sequence markers earlier or later by a seconds offset, preserving durations and optionally clamping markers to zero instead of failing.
Instructions
Move all markers of a sequence, or only those chosen by marker_ids and/or the filters, by an offset in seconds (negative = earlier). Durations are kept. If a marker would land before 0 the call fails and moves nothing, unless clamp_to_zero is true. Returns shifted, clamped_to_zero and the moved markers at their new times. Use it after inserting or removing material at the head of a sequence.
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": {
"offset": "<offset>"
},
"name": "shift_markers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Only markers whose name or comment contains this text (plain substring, case-insensitive). | |
| type | No | Only markers of this type. One of "comment", "chapter", "segmentation", "web_link". | |
| color | No | Only markers of this colour. Colour index or name: 0 green, 1 red, 2 purple, 3 orange, 4 yellow, 5 white, 6 blue, 7 cyan. | |
| offset | Yes | Seconds to add to each marker's time. Negative moves markers earlier. | |
| to_time | No | Only markers that start at or before this sequence time, in seconds. | |
| from_time | No | Only markers that start at or after this sequence time, in seconds. | |
| marker_ids | No | Only shift these markers (combined with any filters). Omit: all markers that match the filters. | |
| sequence_id | No | Stable sequence id (from list_sequences). Omit to use the active sequence. | |
| clamp_to_zero | No | Place markers that would land before the start of the sequence at 0 instead of failing. Default false. | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. |