check_dependencies
Run a read-only dependency audit of the fw-context installation to find missing prerequisites and get repair commands before init or when project status reports problems.
Instructions
Run the dependency audit of the installation. Read-only, and it creates no file.
Call it when get_project_status or another tool reports a problem of
the installation, or before the first fw-context init. It is not a
call for each session: it runs every check of the installation.
Each entry gives what to do in action: a message for a human,
and the shell command that repairs it. status="skipped" means a
prerequisite is missing (e.g. libclang-so skipped because
libclang-python is absent) — not a failure.
In a project that is not initialized, only the checks that need no project config run: the Python packages and libclang. The Ollama, model, database and build checks need the config.
The check config names a config file that cannot be used. The
checks that read the config are then skipped. When a config file
cannot be used, the tool cannot know if the project is initialized,
thus it runs every check.
Args: project_root: Project root directory. Auto-detected from CWD if omitted. project: Project name or project_id — call list_projects to get them. Use it to ask about a project that is not the project of the current directory. It is an alternative to project_root, which takes a root path. Give one of the two, not both.
Returns:
list[dict]: one dict per check, each with name, status,
critical (bool), message, and an optional action
({message, command}).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | Project name or project_id — call list_projects to get them. Use it to ask about a project that is not the project of the current directory. It is an alternative to project_root, which takes a root path. Give one of the two, not both. | |
| project_root | No | Project root. Auto-detected if omitted. Pass explicitly when the project is not the server cwd. This field also accepts a project name or a project_id, but project is the clear field for those. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |