# Console

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

Currently, in the console demo scene, you can access the console by pressing "F7" when playing the game. Here you can type any command you create (which we will do in the next paragraph) or type `"help"` to list all commands and their descriptions.

To create a new command you simply have to annotate a `public static string` method with:

```csharp
[Command("<command-name>", "<description>")]
```

For example:

```csharp
public class TestClass : MonoBehaviour
{
    // any code here
    
    [Command("say-hello", "simply says hello")]
    public static string SayHelloCommand(out EConsoleColor color, params string[] args)
    {
        color = EConsoleColor.Output;
        return "Hello!";
    }
]
```


---

# 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://saitama-studio.gitbook.io/essential-systems/systems/console.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.
