play_index
Play a specific track from the queue on a Sonos device by specifying its index. Optionally, choose the device name or use the current one. Returns the device’s updated state including track details.
Instructions
Play a specific track from the queue on a Sonos device.
Args: index: The index of the track to play. name: The name of the device to play the track on. If None, uses the current device.
Returns: Dict[str, Any]: The device's state after playing the specified track, including name, volume, state, and track info.
Raises: ValueError: If the index is out of the queue's range.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
index | Yes | ||
name | No |