get_repo_structure
Browse a GitHub repository's directory listing one level at a time, from root to nested subfolders, to inspect file and folder structure.
Instructions
List the files and folders at a path inside a repo, like browsing a file tree one level at a time. Start with no path to see the root, then call again with a subdirectory's path (e.g. 'src') to go deeper.
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_repo_structure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Directory path inside the repo, e.g. 'src/utils'. Omit for the repo root. | |
| repo | Yes | Repo as 'owner/name' (e.g. 'facebook/react') or a GitHub URL — usually copied straight from a search result. |