# Play Queue

{% hint style="warning" %}
This action requires a [Premium Subscription](/premium/premium-and-priority-hosting-plans.md#premium-plans) to function.
{% endhint %}

<figure><img src="/files/ZiWI7Q3uUv2tLZjNqUdV" alt="" width="302"><figcaption></figcaption></figure>

The Play Queue action allows you to begin playing the music that is in the music queue. Ensure you add music to the queue with [add to queue](/custom-commands-and-events/actions/music-actions/add-to-queue.md) first. You can use the [`{MusicCurrentTrack}`](/custom-commands-and-events/variables.md#music-objects) object variable to reference the currently playing track.

## Server

This setting allows you to target a server. You have two options to select from:

{% tabs %}
{% tab title="Current Server" %}

<figure><img src="/files/AwoU2UKcfbmtcE9P6qob" alt=""><figcaption></figcaption></figure>

When you select the 'Current Server' option, the music queue of the current server will be played.
{% endtab %}

{% tab title="Server ID" %}

<figure><img src="/files/BL5Y9J0bEnnF8I9pqxZZ" alt=""><figcaption></figcaption></figure>

When you select the 'Server ID' option, the music queue of the provided server ID will be played.

### Server ID

In this field you can enter the ID of the server where you want to play the music queue. Variables can be used in this field.&#x20;
{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.botghost.com/custom-commands-and-events/actions/music-actions/play-queue.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
