check_dependencies
Run a read-only dependency audit to detect installation problems and return clear repair commands before initialization or when issues are reported.
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 of the installation run: the Python packages, SQLite, libclang and its headers. The LLM, model, database and disk 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}).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "check_dependencies"
}
}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 |