Create Git Worktree Workspace
worktree_createCreate a Git worktree for a branch and open it as a linked Herdr workspace for isolated terminal coding agent sessions.
Instructions
Create a Git worktree and open it as a linked Herdr workspace.
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": {
"branch": "<branch>"
},
"name": "worktree_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Source Git repository directory path. | |
| base | No | Optional base commit or ref. | |
| path | No | Optional explicit target checkout path. | |
| focus | No | Switch view to the new worktree workspace (default false). | |
| label | No | Optional workspace label. | |
| branch | Yes | Branch name for the new worktree. | |
| workspace_id | No | Source workspace ID (mutually exclusive with cwd). | |
| trust_repository | No | Grant per-request Git repository trust only if the user explicitly verified the repository. |