> ## Documentation Index
> Fetch the complete documentation index at: https://minekube.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Commands

> In-game commands for controlling the AI assistant and managing your Minekube AI server

# Commands

## AI Commands

| Command         | What It Does                                                                     |
| --------------- | -------------------------------------------------------------------------------- |
| `/ai`           | **Toggle AI chat mode** on or off. When on, all your chat messages go to the AI. |
| `/ai cancel`    | **Cancel** the current AI task immediately.                                      |
| `AI> <message>` | **Send a single message** to the AI without toggling AI mode. Works anytime.     |

***

## How `/ai` Toggle Works

`/ai` is a simple on/off switch:

<Steps>
  <Step title="First /ai -- enables AI mode">
    All your chat messages are now sent to the AI. You see a **green** confirmation: "AI chat mode enabled. All your messages will be sent to AI."
  </Step>

  <Step title="Second /ai -- disables AI mode">
    Chat returns to normal Minecraft behavior. You see a **red** confirmation: "AI chat mode disabled. Use 'AI>' prefix or /ai to enable."
  </Step>
</Steps>

<Info>
  While AI mode is on, slash commands (like `/gamemode`, `/tp`, `/list`) still work normally as Minecraft commands. Only regular chat messages are forwarded to the AI.
</Info>

***

## Cancelling AI Tasks

When the AI is working on something you no longer want, you have three ways to stop it:

| Method                    | How                                                                  | When to Use                                                    |
| ------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------- |
| **Click `[Cancel]`**      | Click the link shown in chat when AI starts processing               | Quick and easy if you see the link                             |
| **Type `/ai cancel`**     | Run the command at any time                                          | Works even if the `[Cancel]` link has scrolled away            |
| **Say an interrupt word** | Type "stop", "cancel", "nevermind", "forget it", "nvm", or "instead" | When you want to cancel and immediately redirect to a new task |

After cancelling, you can send a new request right away.

<Tip>
  Interrupt words are especially useful because you can cancel and redirect in a single message: **"stop, give me creative mode instead"** cancels the current task and starts a new one.
</Tip>

***

## Standard Server Commands

These Minecraft commands work regardless of whether AI mode is on or off (they start with `/`):

| Command                 | Description                                |
| ----------------------- | ------------------------------------------ |
| `/list`                 | Show online players                        |
| `/tps`                  | Show server performance (ticks per second) |
| `/gamemode <mode>`      | Change your game mode                      |
| `/tp <target>`          | Teleport to a player or coordinates        |
| `/give <item> [amount]` | Give yourself items                        |

<Note>
  **Most server management is easier through the AI.** Instead of memorizing commands and their exact syntax, just describe what you want:

  * *"show me who's online"* instead of `/list`
  * *"what's the TPS?"* instead of `/tps`
  * *"give me 64 diamonds"* instead of `/give @s diamond 64`
  * *"make it daytime"* instead of `/time set day`
  * *"turn off mob griefing"* instead of `/gamerule mobGriefing false`

  The AI figures out the right command and runs it for you.
</Note>
