# Attaching Files

You can attach text-based files to your message by pressing the ![](/files/YFpzO8oWpcDuxHJismeQ) button located below the prompt bar and then selecting **Files**.

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

The contents of attached files are injected into the message. As long as the message containing the attached files is within the current context window, their content will remain accessible to the model.

**I**<mark style="background-color:yellow;">**mportant**</mark><mark style="background-color:yellow;">: For large files, you may need to adjust the context window limit.</mark>

{% hint style="info" %}
**Hint**: To have continuous access to the content of larger files, it is recommended to utilize the [Search in Files](/tools/search-in-files.md) tool.
{% endhint %}


---

# 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://mobiledocs.supgpt.app/chat/chat/attaching-files.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.
