List GitHub directories
list_github_directoriesList directories inside a GitHub repository at a specified path, with an option to recursively retrieve all subdirectories.
Instructions
Lists directories (folders) inside a GitHub repository at a given path. Set recursive=true to list every subdirectory in the repo instead of just the immediate children.
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": {
"owner": "<owner>",
"repo": "<repo>"
},
"name": "list_github_directories"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag, or commit SHA (default: repo's default branch) | |
| path | No | Path within the repo to list (default: repo root) | |
| repo | Yes | Repository name, e.g. 'claude-code' | |
| owner | Yes | Repository owner, e.g. 'anthropics' | |
| recursive | No | If true, list all directories in the repo tree recursively (default: false) |