Get File Content Tool
get_file_content_toolRetrieve the decoded text content of a file from a GitHub repository by specifying the repository and file path. Use an optional branch, tag, or commit to read files from any ref.
Instructions
Get the decoded text content of a file in a GitHub repository.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag, or commit SHA (default: the default branch) | |
| path | Yes | Path to the file within the repository | |
| repo | Yes | Repository name | |
| owner | No | Repository owner (defaults to GITHUB_DEFAULT_ORG if unset) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||