Skip to content

ExitWorktreeInput

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  2395640118["input_types.ExitWorktreeInput"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 2395640118
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

Input for the ExitWorktree tool.

Source code in src/clawd_code_sdk/models/input_types.py
@_extra_allow
class ExitWorktreeInput(TypedDict):
    """Input for the ExitWorktree tool."""

    action: Literal["keep", "remove"]
    """'keep' leaves the worktree and branch on disk; 'remove' deletes both."""
    discard_changes: NotRequired[bool]
    """Required true when action is 'remove' and worktree has uncommitted files / unmerged commits.

    The tool will refuse and list them otherwise."""

action instance-attribute

action: Literal['keep', 'remove']

'keep' leaves the worktree and branch on disk; 'remove' deletes both.

discard_changes instance-attribute

discard_changes: NotRequired[bool]

Required true when action is 'remove' and worktree has uncommitted files / unmerged commits.

The tool will refuse and list them otherwise.

:fa-brands-github: Show source on GitHub