assign_worktree
Assigns a git worktree to a specific agent for isolated parallel task execution in a multi-agent environment.
Instructions
エージェントにworktreeを割り当てる。
※ Owner と Admin のみ使用可能。
Args: agent_id: エージェントID worktree_path: worktreeのパス branch: ブランチ名 caller_agent_id: 呼び出し元エージェントID(必須)
Returns: 割り当て結果(success, agent_id, worktree_path, message または error)
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": {
"agent_id": "<agent_id>",
"worktree_path": "<worktree_path>",
"branch": "<branch>"
},
"name": "assign_worktree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | Yes | ||
| agent_id | Yes | ||
| worktree_path | Yes | ||
| caller_agent_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||