github_list_directory
List files and subdirectories at any path in a GitHub repository, including the root, to explore repository structure and locate code before browsing or searching further.
Instructions
List files and subdirectories at a given path in a GitHub repository.
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": "github_list_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| path | Yes | Directory path. Empty string for repo root. | |
| repo | No | ||
| owner | No |