get_file_contents
Retrieve the raw text contents of a file from a GitHub repository. Provide owner/repo, path, and optional ref; large files are refused to protect the context.
Instructions
Get the raw text contents of a file in a repository.
Files larger than 100,000 characters are refused to protect the context window; fetch a narrower path instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag, or commit SHA (defaults to the default branch). | |
| path | Yes | File path within the repository, e.g. "src/server.py". | |
| repo | Yes | Repository as "owner/repo". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |