herdr_worktree_create
Create a git worktree and open it as a herdr workspace, returning workspace and pane IDs for immediate use.
Instructions
Create a git worktree and open it as a herdr workspace. Returns workspace_id, root_pane.pane_id (for agent.start), and worktree info. The pane may need retries for agent.start if 'not an available shell'.
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>",
"path": "<path>"
},
"name": "herdr_worktree_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Repository directory (optional, defaults to worktree detection). | |
| base | No | Base ref to create the branch from (e.g. main, master). | |
| path | Yes | Where to create the worktree directory. | |
| focus | No | Focus the new workspace after creation. | |
| label | No | Workspace label (optional). | |
| branch | Yes | Branch to create/checkout in the worktree. |