Repository map
get_repo_mapGenerate a token-budgeted, ranked symbol map for a registered repository, helping coding agents retrieve concise structure and navigation context without broad crawling.
Instructions
Ranked symbol map within budget (format='compact' tuples, 'grouped' by file, or 'full' objects; omitted_count tracks cuts). query biases graph rank; use find_symbols for exact names.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repo_id": "<repo_id>"
},
"name": "get_repo_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Optional symbol/topic terms that switch rank_mode from global centrality to seed-biased personalized graph ranking. | |
| format | No | Entry detail: 'compact' returns [id, path:line, kind/name] tuples; 'grouped' maps path to compact lines; 'full' returns full symbol objects, signatures, and evidence. | |
| profile | No | Named budget profile preset ('locate', 'orient', 'impact', 'read'); explicit args override profile defaults (defaults to 'orient'). | |
| repo_id | Yes | Registered repository ID from list_repositories (never a filesystem path; errors with unknown_repo_id if unregistered). | |
| budget_tokens | No | Token cap for the response (32 to max_result_tokens); defaults to 'orient' profile (1024) and sets truncated=true if symbols are omitted. | |
| include_tests | No | Include test files and test symbols in ranking when True; defaults to False to prioritize production code. | |
| include_digests | No | Include per-file 12-char SHA-256 file_digests map in compact or grouped mode (defaults to False). | |
| include_omitted_ids | No | Include up to 10 truncated symbol IDs in omitted_symbol_ids for targeted follow-ups. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Ranked symbol map and omission statistics. | |
| error | No | Present when the tool call fails (either a structured {code, message, details} object or a diagnostic string). | |
| budget | No | Token budget accounting for this response. | |
| repo_id | No | Registered repository identifier. | |
| evidence | No | Source-verified file line spans and SHA-256 hashes backing the response. | |
| warnings | No | Freshness, ambiguity, redaction, or security warnings. | |
| freshness | No | Index freshness state ('fresh', 'pending', 'stale', or 'unknown'). | |
| truncated | No | True if items were omitted due to budget or node limits. | |
| ledger_rev | No | Current evidence ledger revision for repo_id. | |
| completeness | No | Coverage/resolution completeness indicator. | |
| index_run_id | No | Identifier of the active index snapshot run. | |
| schema_version | No | Envelope schema version ('1.0'). | |
| untrusted_repository_content | No | True when payload embeds raw repository text. |