Register Git repository
git_register_repositoryRegister a Git worktree under a repository root to obtain a repositoryId for read-only access to Git history and files.
Instructions
Register a Git worktree under a configured repository root and return its repositoryId.
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": {
"path": "<path>"
},
"name": "git_register_repository"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repository | Yes |