# Literals

Once again, I prefer code over talk. Below is how to create a **format** with only literal arguments.

```java
public class DocumentationCommand extends PaperCommand {
    public DocumentationCommand() {
        super("documentation", "I love documentation!", "docs");
        this.addFormat("i love literals because they are so cool", context -> {
            context.getExecutor().sendMessage(Component.text("How many literals WAS THAT??"));
        });
    }
}
```

Hopefully now, you can start to see how Funmand's declarative syntax shines. Once again, I don't like talk. Below is how to do the **exact same command** in CommandAPI:

```java
public class DocumentationCommandAPICommand extends CommandAPICommand {
    public DocumentationCommandAPICommand() {
        super("documentation");
        this
                .withShortDescription("I love documentation!")
                .withAliases("docs")
                .withArguments(new LiteralArgument("i"))
                .withArguments(new LiteralArgument("love"))
                .withArguments(new LiteralArgument("literals"))
                .withArguments(new LiteralArgument("because"))
                .withArguments(new LiteralArgument("they"))
                .withArguments(new LiteralArgument("are"))
                .withArguments(new LiteralArgument("so"))
                .withArguments(new LiteralArgument("cool"))
                .executes((sender, args) -> {
                    sender.sendMessage(Component.text("How many literals WAS THAT??"));
                });
    }
}
```

As you can see, the actual **logic** of the command is *buried* beneath its **structure**. Of course, the example is by no means practical, but you can see how Funmands' productivity benefits can start racking up early on.


---

# 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://slimecraft.gitbook.io/slimecraft-docs/deep-dive/literals.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.
