get_file_content
Read the contents of a file, such as README.md, from a GitHub repository. Provide the repository name, file path, and optionally the branch to retrieve file data via the authenticated token.
Instructions
Get the content of any file (e.g. README.md) from a GitHub repository using the authenticated token.
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": {
"repo": "<repo>"
},
"name": "get_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | No | ||
| repo | Yes | ||
| path | No | README.md | |
| branch | No |