> 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="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FNlTgEeCMu66VFEXus60U%2FScreenshot%202024-09-10%20at%2022.35.50.png?alt=media&amp;token=ef49632e-7059-41e8-9aed-6a5430809714" alt=""><figcaption></figcaption></figure>
