Gitea: Get tree
gitea_get_treeList a Gitea repository's file tree for a branch, tag, or commit. Use recursive mode to retrieve all paths at once when you don't know them ahead of time.
Instructions
[UNIFIED] List the file tree of a Gitea repository. sha may be a branch name, tag, or commit (default: HEAD). recursive=true returns the entire tree in one payload. Use this instead of issuing many get_file calls when you don't know the paths ahead of time.
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": {
"site": "<site>",
"owner": "<owner>",
"repo": "<repo>"
},
"name": "gitea_get_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha | No | HEAD | |
| page | No | ||
| repo | Yes | ||
| site | Yes | ||
| owner | Yes | ||
| per_page | No | ||
| recursive | No |