add_audio
Embed an audio file or music bed into an FCPXML timeline. Supports attaching to a specific clip or spanning the full timeline with configurable offset, duration, and role.
Instructions
Add an audio clip or music bed to the timeline
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filepath | Yes | Path to FCPXML file | |
| parent_clip_id | No | Clip to attach audio to (omit for music bed spanning full timeline) | |
| asset_id | No | Existing asset reference ID | |
| src | No | Path to audio file (creates new asset) | |
| offset | No | Position relative to parent clip start | 0s |
| duration | No | Duration of audio clip | |
| role | No | Audio role (dialogue, music, effects, etc.) | dialogue |
| lane | No | Lane number (negative = below) | |
| output_path | No | Output path |