Astra: now playing
astra_now_playingGet the current playback state of the Astra music player: track, position, duration, volume, mute, shuffle, repeat, output device, and queue length. Uses a live event stream for efficient updates.
Instructions
Get the current playback state of the Astra music player: track, position, duration, volume, mute, shuffle, repeat, output device, and queue length. Served from a live event stream when connected, so it is cheap to call. Returns the current track's ref, which can be passed to astra_set_favorite or astra_playlist.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "astra_now_playing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| muted | Yes | ||
| state | Yes | ||
| repeat | Yes | ||
| source | Yes | ||
| volume | Yes | ||
| shuffle | Yes | ||
| updatedAt | Yes | ||
| queueCount | Yes | ||
| currentTrack | Yes | ||
| durationSeconds | Yes | ||
| positionSeconds | Yes | ||
| outputDeviceLabel | Yes |