github_list_directory
List files and folders in a GitHub repository directory, with optional path and ref, to inspect repository structure and locate files.
Instructions
List a directory ("" is the repo root).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "github_list_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag or commit sha. Defaults to the repo's default branch. | |
| path | No | ||
| repo | No | Repository as 'owner/name'. Defaults to GITHUB_MCP_DEFAULT_REPO when omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |