get_repo_structure
Map a repository's complete file structure, automatically respecting .gitignore rules, and return it as a visual tree, flat list, or structured JSON for codebase analysis.
Instructions
Map the complete file structure of a repository. Automatically respects .gitignore rules. Use 'tree' format for visual hierarchy, 'simple' for flat file lists, or 'json' for programmatic access. Best practice: Run this first when encountering a new codebase.
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": {
"path": "<path>"
},
"name": "get_repo_structure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Root path of the repository | |
| format | No | Output format: 'tree' (visual tree), 'simple' (flat list), or 'json' (structured data) | json |