github_get_repo_structure
Show a single-level directory listing of a GitHub repository path to understand project layout and discover files.
Instructions
List the directory structure of a GitHub repository path (single level, non-recursive). Useful for understanding project layout and discovering files. Works without a token (anonymous rate limits apply — set GITHUB_TOKEN for higher limits).
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": "github_get_repo_structure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Git ref (branch name, tag, or commit SHA). Defaults to the repo's default branch. | |
| path | No | Directory path inside the repo. Defaults to the root. Use forward slashes. | |
| repo | Yes | GitHub repository in the form 'owner/repo' |