# /echo

## Syntax

**/echo** ***text***

## Description

Echoes the specified text (or variables) to the MQ Console window.

## Examples

**Colorized usage**

```
/echo \amThis is a \attest\ax \n\agAll done, let's show a backslash: \ar\\
```

\[MQ2] '''This is a test

All done, let's show a red backslash: '''

**Default usage**

```
/echo My current health percent is ${Me.PctHPs}
```

\[MQ2] My current health percent is 100

## Color Codes

`\ab = black`\
`\a-b = black (dark)`

`\ag = green`\
`\a-g = green (dark)`

`\am = magenta`\
`\a-m = magenta (dark)`

`\ao = orange`\
`\a-o = orange (dark)`

`\ap = purple`\
`\a-p = purple (dark)`

`\ar = red`\
`\a-r = red (dark)`

`\at = cyan`\
`\a-t = cyan (dark)`

`\au = blue`\
`\a-u = blue (dark)`

`\aw = white`\
`\a-w = white (dark)`

`\ay = yellow`\
`\a-y = yellow (dark)`

`\ax = previous color (if no previous \a? this would be the default mq2 color)`

## Special Codes

`\n = newline`\
`\d = down? same as newline (LamahHerder knows not why)`

## See Also

* [MQ2ChatWnd](/macroquest/plugins/core-plugins/mq2chatwnd.md)
* [MQ2Chat](/macroquest/plugins/core-plugins/mq2chat.md)


---

# 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://macroquest.gitbook.io/macroquest/commands/slash-commands/echo.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.
