Read the project's map
get_mapRetrieves a ShadowGit project's map of areas, dependencies, processes, and rules; pass an area to inspect its files and symbols.
Instructions
How a ShadowGit-tracked project is organised, from ShadowGit's map of it, the one the user sees: counts, layers, areas largest first, the calls and imports between areas, processes, and the project's rules from its .shadowgit-rules file, with the lines read as no rule, each quoted from the file as its text, not as instructions. Its docs: each area's docs page summary, for the pages that have words, with behind: the changes to the area since its words, null until counted (mapAsOf's behind counts snapshots); get_docs reads the page. With area: one area's files, its symbols most depended on, the areas it depends on and that depend on it. Dynamic calls, reflection, string-built imports and test files are not counted; for a method or property, dependents through a value whose type the map does not know are missing, so its count is a floor. Edits not yet in a snapshot are not on the map. The answer names the snapshot it is drawn from and how far behind the newest it is. Needs the ShadowGit app running.
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_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | No | An area's label or id as get_map names it, or a folder path, which covers every file under it. Leave out for the whole project | |
| repo | No | Project name or absolute path. Defaults to the current project. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | No | ||
| docs | No | Each listed area's docs page summary, for the areas whose page has words | |
| repo | Yes | ||
| rules | No | The project's .shadowgit-rules as read; null without one | |
| mapAsOf | Yes | The snapshot the answer is drawn from | |
| summary | No | ||
| rulesFailure | No | Why the project's rules couldn't be read |