get_file_contents
Get the contents of a file or directory in a GitHub repository. Provide owner, repo, path, and an optional ref (branch, tag, or commit).
Instructions
Get the contents of a file or directory in a GitHub repository. Docs: https://docs.github.com/en/rest/repos/contents#get-repository-content
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag, or commit SHA (defaults to the default branch) | |
| path | Yes | Path to the file or directory | |
| repo | Yes | Repository name | |
| owner | Yes | Repository owner (user or organization login) |