remove_index_from_queue
Remove a specific track from a Sonos device queue by specifying its index. Ensures quick updates to the playback list and corrects queue management. Requires the track index and optional device name.
Instructions
Remove a specific track from the queue on a Sonos device.
Args: index: The index of the track to remove. name: The name of the device to remove the track from. If None, uses the current device.
Returns: List[Dict[str, Any]]: The updated queue after removing the track.
Raises: ValueError: If the index is out of the queue's range.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
index | Yes | ||
name | No |
Input Schema (JSON Schema)
{
"properties": {
"index": {
"title": "Index",
"type": "integer"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
}
},
"required": [
"index"
],
"title": "remove_index_from_queueArguments",
"type": "object"
}