llm_fs_analyze_context
Analyze workspace files to generate a compact semantic summary, giving LLM routing the project context it needs to choose the right model.
Instructions
Analyze workspace files to build a routing context summary.
Scans key files (package.json, pyproject.toml, go.mod, Cargo.toml, README, open TODOs) and produces a compact semantic summary stored in ~/.llm-router/context_summary.json. Subsequent routing decisions inject this summary into the system prompt so cheap models have workspace context.
Call this once at the start of a project session or after major refactors. The summary is automatically used by llm_route and llm_auto — no further action required.
Args: path: Workspace root to analyze (default: current directory). max_files: Maximum files to read (default: 20).
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": "llm_fs_analyze_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | . | |
| max_files | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |