github_get_file_contents
Retrieve file contents from any GitHub repository by specifying the repository name and file path. Access code, documentation, or configuration files directly from GitHub repositories for analysis or integration purposes.
Instructions
Get the contents of a file from a GitHub repository.
Args: repo_name: Full repository name (e.g., "owner/repo") file_path: Path to the file in the repository ref: Optional branch, tag, or commit SHA
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| ref | No | ||
| repo_name | Yes |
Input Schema (JSON Schema)
{
"properties": {
"file_path": {
"type": "string"
},
"ref": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"repo_name": {
"type": "string"
}
},
"required": [
"repo_name",
"file_path"
],
"type": "object"
}