Active Project
faf_contextShow or set the active project folder that all faf_* calls use by default, and optionally return its .faf text. Call once at session start to confirm context.
Instructions
Show the active project — the folder every faf_* call without a path uses — and the .faf there; pass path to make another folder the active project (your home folder and the filesystem root are refused). detail: true also returns the .faf's text. Writes no file. Call it once at the start of a session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Set active project path. If omitted, shows current context. | |
| detail | No | Also return the text of the .faf (read with faf-cli's reader), for reading project.faf in one call |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | The .faf file readers use (faf-cli's finder: the folder, then one level up), if found | |
| active | Yes | Absolute path of the active project | |
| hasFaf | Yes | Whether a project.faf (or .faf) was found there or one level up | |
| changed | Yes | True if this call set a new context, false if it only reported | |
| content | No | detail: true — the text of the .faf | |
| filename | No | The .faf filename, if found |