Sync offset
media.correlateFind how far one recording sits from another: the sync offset of b against a, by cross-correlating their sound, with how strongly they match. Use it to line up a camera with a separate microphone, two cameras of the same moment, or a re-recorded line against the original. Each side is imported media or an edit's mix (timeline_id), over its own from_seconds to until_seconds, so you can match a short stretch of b against a longer stretch of a. offset_seconds: b's moment t lines up with a's moment t + offset_seconds, each in its own seconds. To line them up on a timeline, place b's clip so it starts offset_seconds later than a's (earlier when negative), source starts being equal. strength is the correlation of the overlapping sound at that offset, -1 to 1: near 1 the same sound, near 0 unrelated; next_best is the best offset outside the winning peak, and a strength close to it means the match is unclear (repetitive sound, or not the same moment). Offsets are searched up to max_offset_seconds either way, where at least half of the shorter sound overlaps the other. Up to 600 s read from each side. A side with no sound in its range (no audio stream, a range past its end, or digital silence) fails with no_audio, naming which side. Short reads answer at once; longer ones return a task or job.
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": {
"a": "<a>",
"b": "<b>",
"max_offset_seconds": "<max_offset_seconds>"
},
"name": "media.correlate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | The sound to line up against: the reference | |
| b | Yes | The sound whose offset you want | |
| idempotency_key | No | ||
| max_offset_seconds | Yes | Search offsets up to this far either way |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | Yes | ||
| job_id | Yes | Job handle; the same value is the MCP task id | |
| result | No | The result, when status is completed; otherwise job.get gives it once completed | |
| status | Yes | ||
| media_id | No | The media it is making: an import is usable in edits once its status is processing, a created media once this job completes | |
| status_uri | Yes |