github_repos_get_content
Get file or directory contents from a GitHub repository. Specify owner, repo, path, and optional ref for a specific branch or commit.
Instructions
Get repository content
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": "github_repos_get_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | The name of the commit/branch/tag. Default: the repository’s default branch. | |
| path | Yes | path | |
| repo | Yes | repo | |
| owner | Yes | owner |