get_file_contents
Retrieve file or directory contents from a GitHub repository by specifying the owner, repo, path, and branch. Optionally return content as base64-encoded data.
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 |