Create an Orca worktree
orca_worktree_createCreates a new git worktree in Orca, optionally launching a coding agent in it with a first prompt. Use it to start isolated branch work without duplicates.
Instructions
Create a new git worktree in Orca, optionally starting an agent in it with a prompt. Needs repo or project. Check orca_worktree_list first to avoid duplicates.
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": {
"name": "<name>"
},
"name": "orca_worktree_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Worktree and branch name. | |
| repo | No | Repo selector, from orca_repo_list. | |
| agent | No | Agent id, for example claude, codex, opencode or gemini. | |
| model | No | Provider model id. | |
| setup | No | Whether to run the repo setup script. | |
| effort | No | Reasoning effort; requires model. | |
| prompt | No | First prompt for the agent. | |
| comment | No | Note shown on the worktree in Orca. | |
| project | No | Project id or name, from orca_project_list. | |
| baseBranch | No | Base ref for the new branch. |