play_background_file
play_background_file
Control background file playback during calls. A single tool handles both starting and
stopping playback via an action parameter with dynamic enum values generated from the
configured file list. Supports audio and video files.
Tools: play_background_file (default, customizable via tool_name)
Requirements: None (files must be accessible via URL)
Multi-instance: Yes (use different tool_name per instance)
files
Array of file configurations to make available for playback. Each object must include:
key(str, required) — Unique identifier for the file (alphanumeric, underscores, hyphens).description(str, required) — Human-readable description of the file.url(str, required) — URL of the audio/video file to play.wait(bool, optional, defaultFalse) — Whether to wait for the file to finish playing.