annator / mcps /grok_com_github /tools /get_repository_tree.json
techprotrade's picture
Add mcps directory
31c9f7d verified
Raw
History Blame Contribute Delete
1.07 kB
{
"name": "get_repository_tree",
"description": "Get the tree structure (files and directories) of a GitHub repository at a specific ref or SHA",
"inputSchema": {
"type": "object",
"properties": {
"owner": {
"type": "string",
"description": "Repository owner (username or organization)"
},
"path_filter": {
"type": "string",
"description": "Optional path prefix to filter the tree results (e.g., 'src/' to only show files in the src directory)"
},
"recursive": {
"type": "boolean",
"description": "Setting this parameter to true returns the objects or subtrees referenced by the tree. Default is false",
"default": false
},
"repo": {
"type": "string",
"description": "Repository name"
},
"tree_sha": {
"type": "string",
"description": "The SHA1 value or ref (branch or tag) name of the tree. Defaults to the repository's default branch"
}
},
"required": [
"owner",
"repo"
]
}
}