# Arguments

```java
public class DocumentationCommand extends PaperCommand {
    public DocumentationCommand() {
        super("documentation", "I love documentation!", "docs");
        this.addFormat("foo:int bar:double baz:float", context -> {
            if (!(context.getExecutor() instanceof final Player player)) {
                return;
            }
            final int foo = context.get("foo");
            final double bar = context.get("bar");
            final float baz = context.get("baz");

            player.sendMessage(Component.textOfChildren(
                    Component.text(foo),
                    Component.text(bar),
                    Component.text(baz)
            ));
        });
    }
}
```

* Your command now takes in three arguments:
  * foo (of an integer type)
  * bar (of a double type)
  * baz (of a float type)
* You can get the arguments in a `Context` by calling the `#get()` method.


---

# 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/arguments.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.
