github_mcp.list_tree
Browse safe tracked entries in a repository's default-branch snapshot, paging results with limit and offset. Refreshes the local read cache and excludes unsafe paths.
Instructions
Browse safe tracked entries in the default-branch snapshot. Returns entries, total and next_offset; use next_offset for subsequent pages. Refreshes the local read cache and excludes unsafe paths.
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": {
"repository": "<repository>"
},
"name": "github_mcp.list_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Page size, 1–200 entries; default 100. | |
| offset | No | Zero-based entry offset; default 0. | |
| repository | Yes | Allowlisted owner/repo identifier. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| message | No | ||
| error_code | No |