> For the complete documentation index, see [llms.txt](https://macdocs.supgpt.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://macdocs.supgpt.app/tools/get-active-directory.md).

# Get Active Directory

When executing file-related tasks or commands, the model can determine if the active directory is set and get its location..

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