orca_worktree_create
Create a new worktree in a registered repo and launch a coding agent with a self-contained task prompt. The worktree is tagged to your client so status and wait calls find it after a restart.
Instructions
Create a new worktree in a repo and start a coding agent in it with the task prompt (optional model and effort). The worktree is tagged as this client's, so orca_agent_status and orca_wait find it after a restart. Returns the agent's terminal handle.
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": {
"repo": "<repo>",
"name": "<name>",
"prompt": "<prompt>"
},
"name": "orca_worktree_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Worktree/branch name | |
| repo | Yes | Absolute path of a repo registered in Orca | |
| agent | No | claude | |
| model | No | ||
| effort | No | ||
| prompt | Yes | The task for the agent, self-contained | |
| comment | No | A note shown on the worktree in Orca; the owner tag is appended to it | |
| baseBranch | No |