get_tree
Retrieve a single tree from a GitHub repository using SHA1 or ref name, optionally including all nested subtrees.
Instructions
Get a single tree in a GitHub repository using the SHA1 value or ref name for that tree. Docs: https://docs.github.com/en/rest/git/trees#get-a-tree
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"owner": "<owner>",
"repo": "<repo>",
"tree_sha": "<tree_sha>"
},
"name": "get_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name | |
| owner | Yes | Repository owner (user or organization login) | |
| tree_sha | Yes | SHA1 value or ref (branch/tag) name of the tree | |
| recursive | No | If true, recursively return all objects/subtrees referenced by the tree |