get-content
Retrieve file or directory content from GitHub Enterprise repositories by specifying owner, repo, and path. Supports branch or commit hash references for precise data access.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
owner | Yes | User or organization name | |
path | Yes | File or directory path | |
ref | No | Branch or commit hash (default: default branch) | |
repo | Yes | Repository name |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"owner": {
"description": "User or organization name",
"type": "string"
},
"path": {
"description": "File or directory path",
"type": "string"
},
"ref": {
"description": "Branch or commit hash (default: default branch)",
"type": "string"
},
"repo": {
"description": "Repository name",
"type": "string"
}
},
"required": [
"owner",
"repo",
"path"
],
"type": "object"
}