github_repos_get_content
Read a file or list a directory from a GitHub repository, using an optional ref and empty path for the root. Returns file contents as decoded text.
Instructions
Read a file, or list a directory. Pass an empty path for the repository root. File contents come back decoded as text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | The name of the commit/branch/tag. Defaults to the repository's default branch. | |
| path | Yes | The path of the file or directory, relative to the repository root. Use an empty string for the root directory. | |
| repo | Yes | The name of the repository without the `.git` extension. The name is not case sensitive. | |
| owner | Yes | The account owner of the repository. The name is not case sensitive. |