capture_track_audio
Capture a specific REAPER track's audio to a WAV file and return its evidence scope. Handles per-track isolation or full mix fallback.
Instructions
Render a track capture to WAV and return its evidence scope. Only isolated_track with isolation_verified=true is per-track audio; item-based tracks can report a full_mix fallback. Gated: needs allow_audio_writes=true (or the legacy allow_risk_level_3 fallback) in bridge/bridge_config.json (python3 setup/install.py --allow-audio-writes writes it; capture does NOT need save_project or preference rights) AND the change applied by the reload_bridge command, or a REAPER relaunch — the flag is read once per bridge load. Synchronous — blocks the bridge for the render duration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track | No | Exact track name (case-insensitive). | |
| output_file | No | Optional; defaults to a unique temp path. | |
| start_seconds | No | ||
| track_contains | No | Case-insensitive substring; errors if it matches more than one track. | |
| duration_seconds | No | Default 30, max 600. Starts at the edit cursor (or active time selection). | |
| target_track_guid | No | Stable REAPER track GUID; preferred when available. | |
| use_selected_track | No | Target the currently selected track instead of naming one. |