Play a radio station
play_stationStarts a radio station stream by ID and returns a WebSocket URL for the client player to receive audio; optionally transcodes to mp3, opus, or PCM formats.
Instructions
Start streaming a radio station (by "id" from the search/recommend tools) and return a WebSocket URL (wsUrl) the client player connects to. The server does not play audio itself: hand wsUrl to the player. Binary WS frames carry the audio; JSON text frames carry {type:"ready"|"metadata"|"reconnecting"|"error"|"ended"}. format: "passthrough" (original codec, default) or "mp3"/"opus"/"pcm16" (48 kHz stereo)/"pcm16_24k_mono" (transcoded, need ffmpeg). Use now_playing for the current song and stop_stream when done.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "play_station"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Station id (radio-browser stationuuid), as returned by the search tools | |
| format | No | Audio format (default "passthrough") |