get_file
Retrieve a file's content from a GitHub repository using the Contents API. Provide owner, repo, file path, and optionally a branch or tag.
Instructions
Read a file from a repo via the Contents API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | GitHub owner/org name. | |
| repo | Yes | Repository name. | |
| path | Yes | File path within the repo, no leading slash. | |
| ref | No | Branch, tag, or SHA. Default: the default branch. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||