Select
set_selectionSelect an audio range by start/end seconds, exact sample frames, or the whole file to define the bounds for subsequent range edits.
Instructions
Select using start/end in seconds, start_frame/end_frame for exact sample frames, or all for the whole file. Use only one form. The end is exclusive; leaving it out places a caret. Frame coordinates use the document's sample rate, one frame across all channels. The reply reports the actual frame bounds. Range edits act on this selection.
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": "set_selection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | select the whole file instead | |
| end | No | seconds; leave out for a caret at start | |
| start | No | seconds from the start | |
| end_frame | No | exclusive end frame; leave out for a caret at start_frame | |
| start_frame | No | zero-based sample frame at the document rate; use instead of seconds |