get_project_map
Get a compressed structural overview of your codebase, with function bodies folded to reduce tokens. Restrict to specific directories or unfold selected files for full resolution.
Instructions
Returns a compressed structural overview of the workspace. Function bodies are folded and replaced with placeholders. Compression tiers: Tier 1 removes comments; Tier 2 removes comments and folds function bodies; Tier 3 folds all block structures. IMPORTANT: This output is read-only reference material. Never edit files using the folded output. Always call injector_retrieve to get the full uncompressed source before making any edits. Feel free to use this tool proactively to understand architecture or locate unfamiliar code before searching.
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": "get_project_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier | No | Compression tier to apply (default: 2). | |
| path_prefixes | No | Optional list of path prefixes to restrict the project map to specific directories. | |
| unfolded_files | No | Workspace-relative paths or glob patterns for files to serve at full resolution (uncompressed). Supports exact paths, globs (src/auth/*.go), and ** prefix patterns (**/*_test.go). |