remove_worktree
Remove a git worktree by providing the main repository path and the worktree path. Force flag allows deletion with uncommitted changes.
Instructions
git worktreeを削除する。
※ Owner と Admin のみ使用可能。
Args: repo_path: メインリポジトリのパス worktree_path: 削除するworktreeのパス force: 強制削除するか(デフォルト: False) caller_agent_id: 呼び出し元エージェントID(必須)
Returns: 削除結果(success, 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": {
"repo_path": "<repo_path>",
"worktree_path": "<worktree_path>"
},
"name": "remove_worktree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| repo_path | Yes | ||
| worktree_path | Yes | ||
| caller_agent_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||