github_list_directory
List files and folders in a GitHub repository directory to inspect project structure and locate code or resources. Provide owner, repo, and optional path or ref.
Instructions
列出仓库中一个目录的内容(只读)。
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": "github_list_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| path | No | 目录路径,留空为根目录 | |
| repo | Yes | 仓库名 | |
| owner | Yes | 仓库所有者(用户或组织) |