list_worktrees
List git worktrees and view their branch, path, uncommitted changes, and commits ahead or behind master.
Instructions
List all git worktrees with their status information. Shows branch name, path, uncommitted changes, and commits ahead/behind master.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_worktrees"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional: Working directory (defaults to current directory) |