Add a sync point at a word + timestamp
add_sync_pointInsert one sync marker on a clip's transcript.
Use this when:
The user is explicit about WHERE the camera should pause / cut (e.g. "sync the word 'submit' to 4.2s of the demo").
auto_syncran but missed a step you care about.
How matching works:
word: case-insensitive; punctuation and apostrophe style don't matter ("here's" matches "Here’s,").occurrence: 1-indexed, to pin a repeated word by count. Omit it and the occurrence spoken nearesttimestamp_secondsis used (the first one when the clip has no word timings yet); the reply says which (occurrence,occurrence_chosen_by).timestamp_seconds: clip-relative seconds, measured from the clip's OWN start (a split clip's right half starts at 0 too). The server maps it to original-recording seconds: through the TTS retime when the clip has run TTS, plus the clip's source in-point. The reply'stimestamp_seconds_originalis that recording second andsource_start_secondsthe in-point;mapped_from_generatedis true only when a TTS retime actually moved the value.
Constraints: the clip MUST be a video clip with a source recording; a slide or blank clip answers not_a_video_clip. The transcript must already contain the word — if not, you'll get word_not_found with a 200-char excerpt of the transcript and close_matches to retry with. The reply's order is the new marker's number: the N of its <SYNC_MARKER N> in voiceover_text, what get_clip(select:['sync_points']) lists and what remove_sync_point takes. warnings flags a marker already on that word (stacked markers leave no speech between them: remove one or pick another word) and a timestamp outside the clip's source range.
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": {
"project_id": "<project_id>",
"word": "<word>",
"timestamp_seconds": "<timestamp_seconds>"
},
"name": "add_sync_point"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| word | Yes | Target word (case-insensitive; trailing punctuation is stripped). | |
| clip_id | No | Clip ID (preferred). If omitted, clip_index is used. | |
| clip_index | No | Zero-based clip index. Ignored if clip_id is provided. | |
| occurrence | No | 1-indexed match number when the word repeats. Omit to use the occurrence spoken nearest timestamp_seconds. | |
| project_id | Yes | Project ID. | |
| sync_point_name | No | Optional label (e.g. 'Click submit'). Defaults to 'Sync point N' using the next order number. | |
| timestamp_seconds | Yes | Clip-relative timestamp in seconds. Auto-mapped to original-recording seconds when the clip has generated_timestamps. |