get_file_content
Retrieve the content of any file from a Forgejo repository by specifying the owner, repository name, file path, and optionally a branch or commit.
Instructions
Get file content from repository
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>",
"path": "<path>"
},
"name": "get_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch or commit (defaults to main) | main |
| path | Yes | File path | |
| repo | Yes | Repository name | |
| owner | Yes | Repository owner |