Match frame
match_frameFind the source project item, media path, and source time that correspond to a timeline frame for a given clip, accounting for speed and reverse playback.
Instructions
Find the source frame behind a timeline frame. For a timeline time (default: the playhead) and a clip (default: the enabled clip under that time on the highest video track, else the first audio clip there), return the source project item, media path and source_time: the position in the source media, in seconds from the media start, that plays at that timeline time. Clip speed and reverse are taken into account. exact is true for forward clips; for reversed clips it is false: the position is mirrored around the source length read from the project item's out point, so it can be a frame off, and is wrong if the item has an out mark. Computed from clip data: it does not open the Source Monitor or move the playhead (use open_in_source_monitor for that). Fails with NOT_FOUND if no clip is under the time, BAD_ARGS if the time is outside the given clip, UNSUPPORTED for a reversed clip whose media length cannot be read.
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": "match_frame"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | No | Sequence time in seconds. Default: the playhead position. | |
| 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. |