get_file_content
Read file contents from a GitHub repository at a specified branch, tag, or commit. Retrieves decoded text content for any file path.
Instructions
Read the contents of a file from a GitHub repository at a given ref (branch, tag, or commit SHA). Defaults to the repo's default branch. Text files are returned UTF-8-decoded under 'decoded_content'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag, or commit SHA (optional) | |
| path | Yes | File path within the repo (e.g., 'src/main.py') | |
| repo | Yes | Repository name | |
| owner | Yes | Repository owner (user or org) |