list_files
列出 GitHub 仓库的全部文件路径(带大小)。当需要了解仓库结构、寻找特定文件时使用。branch 缺省时自动使用默认分支。支持 path_prefix 前缀过滤与 glob 模式过滤(如 .md、src/**/.ts),文件很多时建议缩小范围。
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_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | No | glob 模式过滤文件路径:* 单段任意、** 跨目录、? 单字符,如 *.md、src/**/*.ts | |
| repo | Yes | 仓库名 | |
| owner | Yes | 仓库属主 | |
| branch | No | 分支名,缺省用默认分支 | |
| path_prefix | No | 路径前缀过滤,如 src/lib/ |