Map the codebase
mapAnalyze repository architecture to find modules, central files, used symbols, and entry points; zoom into a directory to outline files and symbols with line numbers.
Instructions
Start here. A map of the repository: modules (communities of files that depend on each other), the most central files (PageRank), the most used symbols, and entry points. Pass focus (a directory) to zoom in and get an outline of its files and symbols with line numbers.
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": "map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Repository root. Defaults to the client's workspace root or the server's working directory. | |
| focus | No | Directory to zoom into, e.g. src/server. | |
| limit | No | Items per section (default 12). | |
| format | No | text (default, compact, file:line cited) or json. | |
| tokens | No | Token budget (estimated at 4 characters per token). Fills the map with the highest-ranked modules, files and symbols up to the budget and says what was omitted. Default: no budget. |