Read a file from GitHub
github_get_fileFetch a text file from a GitHub repository by path and branch, returning its content, SHA, and commit info for use in SEO workflows.
Instructions
Read a file (text) from a repository branch. Returns content, sha (needed for edits), size and the branch's latest commit. Files over 1 MB are refused; use github_list_dir to browse.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag or commit; defaults to the default branch. | |
| path | Yes | ||
| repo | Yes | Repository as 'owner/name', e.g. 'octocat/my-site'. |