Codebase Map
get_codebase_mapMaps a repo's architecture in one call so AI can orient in unfamiliar code, find modules, and see dependencies, cycles, hot files, endpoints, entry points, clones, and untested high-risk functions.
Instructions
A repo's architecture in one call.
CALL THIS WHEN: • Orienting in a repo or locating a module • The mapped repo name is unknown
RETURNS: Modules and LOC, dependencies and cycles, hot files (5), endpoints (50), entry points (30), exact clones and high-risk functions without direct test links.
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": "<repo>"
},
"name": "get_codebase_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name — one of your connected repos. | |
| include_health | No | Include the Codebase Health baseline | |
| include_metrics | No | List the 10 most-changed files instead of 5 |