get_file_contents
Retrieve file or directory contents from a GitHub repository by specifying the owner, repo, and path. Supports base64 encoding and branch selection for precise content access.
Instructions
Get the contents of a file or directory from a GitHub repository
Input Schema
Name | Required | Description | Default |
---|---|---|---|
branch | No | Branch to get contents from | |
encoded | No | Whether to return the content encoded in base64 (default = true) | |
owner | Yes | Repository owner (username or organization) | |
path | Yes | Path to the file or directory | |
repo | Yes | Repository name |