get_file_contents
Extract and retrieve contents of a specific file or directory from a GitHub repository by specifying the owner, repository name, path, and branch.
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 | |
owner | Yes | Repository owner (username or organization) | |
path | Yes | Path to the file or directory | |
repo | Yes | Repository name |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"branch": {
"description": "Branch to get contents from",
"type": "string"
},
"owner": {
"description": "Repository owner (username or organization)",
"type": "string"
},
"path": {
"description": "Path to the file or directory",
"type": "string"
},
"repo": {
"description": "Repository name",
"type": "string"
}
},
"required": [
"owner",
"repo",
"path"
],
"type": "object"
}