github_get_file
Retrieve the contents of a file from a GitHub repository by specifying owner, repo, and file path. Optionally target a specific branch, tag, or commit SHA.
Instructions
Get the contents of a file from a GitHub repository.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag, or commit SHA (defaults to default branch) | |
| path | Yes | File path within the repo, e.g. 'src/index.ts' | |
| repo | Yes | ||
| owner | Yes |