# Usage

CommandPrompter intercepts all of the commands that are being executed by players. If one of the commands contains `Prompt(s)` (by default it is signified with a `<>`, but could be changed in the configuration.) CommandPrompter will then cancel that command and prompt the player with whatever that prompt was. When all prompts have been resolved, CommandPrompter will then allow the player to execute the full command.

{% hint style="info" %}
*from v2.5.0, you can now also use the* [Console Delegate](/commandprompter/features/console-delegate.md) *command to prompt target players*
{% endhint %}

#### Additional Prompt Option

An additional argument that you append at the beginning of the prompt changes the type of that prompt. By default, a prompt without an argument is going to be a `Text Prompt`. However, if we append the argument `-a` (with a space), the prompt becomes an `Anvil Prompt`. To see all of the available prompt types, check out the Prompts group on the sidebar. To learn more about Arguments check [Prompt and PromptQueue Arguments](/commandprompter/getting-started/arguments.md)

#### Example

```
Text Prompt:
    Player: /command <prompt 1> <prompt 2>
    CommandPrompter: prompt 1
    Player: answer1
    CommandPrompter: prompt 2
    Player: answer2

Now that the command completion is done, CommandPrompter will now execute the following command:
/command answer1 answer2

Anvil Prompt:
    Player: /command <-a prompt>
    CommandPrompter: opens anvil gui for player.
    Player: types "answer1" on the anvil.
 
Now that the command completion is done, CommandPrompter will now execute the following command:
/command answer1
```


---

# 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://cyr1en.gitbook.io/commandprompter/getting-started/usage.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.
