Skip to content

EnterWorktreeInput

Base classes

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

⋔ Inheritance diagram

graph TD
  3290846108["input_types.EnterWorktreeInput"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 3290846108
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

Input for the EnterWorktree tool.

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

    name: NotRequired[str]
    """Optional name for the worktree. A random name is generated if not provided."""
    path: NotRequired[str]
    """Path to an existing worktree of the current repo to switch into instead of creating new one.

    Must appear in `git worktree list` for the current repo. Mutually exclusive with `name`.
    """

name instance-attribute

name: NotRequired[str]

Optional name for the worktree. A random name is generated if not provided.

path instance-attribute

path: NotRequired[str]

Path to an existing worktree of the current repo to switch into instead of creating new one.

Must appear in git worktree list for the current repo. Mutually exclusive with name.

:fa-brands-github: Show source on GitHub