Gitea: Get file
gitea_get_fileFetch a file’s Base64-encoded contents and metadata from a Gitea repository by specifying the site, owner, repo, and path; optionally include a branch or commit ref.
Instructions
[UNIFIED] Get file contents from a Gitea repository. Returns file content (Base64 encoded) and metadata.
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>",
"path": "<path>"
},
"name": "gitea_get_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| path | Yes | ||
| repo | Yes | ||
| site | Yes | ||
| owner | Yes |