git_worktree_switch
Switch to an existing git worktree by ticket ID, branch, or path to move context between tickets. Returns the worktree path.
Instructions
Hop to an existing git worktree by ticket ID, branch name, or path. Use this to switch context to a different ticket. Returns the worktree path. IMPORTANT: After calling this tool, you MUST immediately run the cd command from suggestedCommands to change the working directory.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | Combined with ticket to find a specific worktree when multiple exist for one ticket. | |
| branch | No | Branch name to find the worktree for. | |
| ticket | No | Ticket ID to find the worktree for (matches against branch names). | |
| repoPath | No | Any path inside the git repository. | |
| worktreePath | No | Direct path to the worktree directory. |