list_repo_files
Lists versioned files at a branch, tag, or SHA and resolves the revision to a full commit SHA for stable pagination and subsequent reads.
Instructions
List versioned files at a branch/tag/SHA, resolving it to a full commit SHA.
Reuse the returned revision for stable subsequent pages and reads.
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>",
"revision": "<revision>"
},
"name": "list_repo_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| limit | No | ||
| revision | Yes | ||
| page_token | No | ||
| repository | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | ||
| source | Yes | ||
| revision | No | ||
| warnings | No | ||
| truncated | No | ||
| repository | Yes | ||
| next_page_token | No |