# Set Active Directory

Sets the active directory, where the chat can create, read and edit files.

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

When the model runs command, the active directory is used as the location for executing the command. For example, if the active directory is set and a request is made to the model to initialize a React project, it will be created in that directory.

The active directory can also be set or changed from the chat settings panel.

<figure><img src="/files/y5jBJUL3D9uFpNZ2vgne" 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://macdocs.supgpt.app/tools/set-active-directory.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.
