PlayBackgroundFileSkill
Control background audio/video playback during calls using SWML playback
actions. Supply files and the skill emits a single tool whose action enum
includes start_<key> for each configured file plus stop. The skill refuses
to load when files is empty.
Class: PlayBackgroundFileSkill
Tools: play_background_file (configurable via tool_name)
Env vars: None
Multi-instance: yes — set a distinct tool_name per instance.
tool_name
Custom name for the generated SWAIG tool. Required when registering multiple instances on the same agent.
files
Array of pre-configured file entries that become selectable via the tool’s
action enum.
Each entry has:
key(string, required) — unique identifier (alphanumeric, underscores, hyphens); mapped tostart_<key>in theactionenum.description(string, required) — human-readable description shown to the AI.url(string, required) — URL of the audio/video file.wait(boolean, optional, defaultfalse) — whether to wait for the file to finish playing.