create_tree
Create a new tree object in a GitHub repository from tree entries, optionally using a base tree for updates.
Instructions
Create a new tree object in a GitHub repository from a set of tree entries, optionally based on an existing tree. Docs: https://docs.github.com/en/rest/git/trees#create-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": "<tree>"
},
"name": "create_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name | |
| tree | Yes | Tree entries specifying the new tree structure | |
| owner | Yes | Repository owner (user or organization login) | |
| base_tree | No | SHA of an existing tree to use as the base for the new tree |