Control background audio/video playback during calls using SWML playback actions. Two configuration modes are supported:
files and the skill
emits a single tool whose action enum includes start_<key> for each
configured file plus stop.files and supply
default_file_url and/or allowed_domains. The skill emits two tools,
play_background and stop_background, which accept arbitrary URLs (with
optional domain allowlist).Class: PlayBackgroundFileSkill
Tools (pre-configured mode): play_background_file (configurable via
tool_name)
Tools (free-form mode): play_background, stop_background
Env vars: None
Multi-instance: yes — set a distinct tool_name per instance.
Custom name for the generated SWAIG tool in pre-configured mode. Required when registering multiple instances on the same agent.
Array of pre-configured file entries that become selectable via the tool’s
action enum. When supplied (and non-empty), the skill runs in
pre-configured mode; when omitted or empty, the skill falls back to
free-form mode.
Each entry has:
key (string, required) — unique identifier (alphanumeric, underscores,
hyphens); mapped to start_<key> in the action enum.description (string, required) — human-readable description shown to
the AI.url (string, required) — URL of the audio/video file.wait (boolean, optional, default false) — whether to wait for the
file to finish playing.Default audio file URL for free-form mode. When set, the file_url
parameter on the play_background tool becomes optional.
Allowlist of domains for audio file URLs in free-form mode. When set, only URLs whose hostname matches or is a subdomain of one of these entries are accepted.