# Attachment Option

<figure><img src="/files/Sa2xdSjRo93uWew237CG" alt="" width="375"><figcaption></figcaption></figure>

This option block will allow you to add an attachment in the form of a file, that can be referenced later in your command.

<figure><img src="/files/09YcVIxlxHx5ksXLSjEk" alt=""><figcaption></figcaption></figure>

You can retrieve the variable of the option via the **Clipboard** or the block itself. The format of the variable is `{option_optionname}`, where `optionname` is the [name](#option-name) of the option.

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

## Option Name

This field requires an input for your unique option name. The designated name will then be the reference for your option variable.

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

## Option Description&#x20;

The option description field allows you to assign a custom description to your option. It is useful to describe what the option is used for.

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

## Set Required

With this switch you are able to toggle if the option should be required or not in order to execute the command.

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


---

# 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://documentation.botghost.com/custom-commands-and-events/options/attachment-option.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.
