> ## Documentation Index
> Fetch the complete documentation index at: https://ai.easyaf.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# ExitWorktreeToolResponse

> Represents the response payload returned by the Claude Code ExitWorktree tool after exiting and optionally removing a git worktree.

## Definition

**Assembly:** CloudNimble.ClaudeEssentials.dll

**Namespace:** CloudNimble.ClaudeEssentials.Hooks.Tools.Responses

**Inheritance:** System.Object

## Syntax

```csharp theme={null}
CloudNimble.ClaudeEssentials.Hooks.Tools.Responses.ExitWorktreeToolResponse
```

## Summary

Represents the response payload returned by the Claude Code ExitWorktree tool
after exiting and optionally removing a git worktree.

## Remarks

Example JSON payload:

```csharp theme={null}
{
  "action": "remove",
  "originalCwd": "/home/user/project",
  "worktreePath": "/tmp/worktrees/feature-abc",
  "worktreeBranch": "worktree/feature-abc",
  "discardedFiles": 3,
  "discardedCommits": 1,
  "message": "Removed worktree and returned to /home/user/project"
}
```

## Constructors

### &#x20;.ctor

#### Syntax

```csharp theme={null}
public ExitWorktreeToolResponse()
```

### &#x20;.ctor Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public Object()
```

## Properties

### &#x20;Action

Gets or sets the action that was performed.

#### Syntax

```csharp theme={null}
public CloudNimble.ClaudeEssentials.Hooks.WorktreeAction Action { get; set; }
```

#### Property Value

Type: `CloudNimble.ClaudeEssentials.Hooks.WorktreeAction`

### &#x20;DiscardedCommits

Gets or sets the number of unmerged commits that were discarded when removing the worktree.

#### Syntax

```csharp theme={null}
public System.Nullable<int> DiscardedCommits { get; set; }
```

#### Property Value

Type: `System.Nullable<int>`

### &#x20;DiscardedFiles

Gets or sets the number of uncommitted files that were discarded when removing the worktree.

#### Syntax

```csharp theme={null}
public System.Nullable<int> DiscardedFiles { get; set; }
```

#### Property Value

Type: `System.Nullable<int>`

### &#x20;Message

Gets or sets a human-readable message about the operation.

#### Syntax

```csharp theme={null}
public string Message { get; set; }
```

#### Property Value

Type: `string`

### &#x20;OriginalCwd

Gets or sets the original working directory before the worktree was entered.

#### Syntax

```csharp theme={null}
public string OriginalCwd { get; set; }
```

#### Property Value

Type: `string`

### &#x20;TmuxSessionName

Gets or sets the tmux session name, if applicable.

#### Syntax

```csharp theme={null}
public string TmuxSessionName { get; set; }
```

#### Property Value

Type: `string?`

### &#x20;WorktreeBranch

Gets or sets the git branch name associated with the worktree.

#### Syntax

```csharp theme={null}
public string WorktreeBranch { get; set; }
```

#### Property Value

Type: `string?`

### &#x20;WorktreePath

Gets or sets the file system path of the worktree that was exited.

#### Syntax

```csharp theme={null}
public string WorktreePath { get; set; }
```

#### Property Value

Type: `string`

## Methods

### &#x20;Equals Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public virtual bool Equals(object obj)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `obj` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;Equals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public static bool Equals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;GetHashCode Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public virtual int GetHashCode()
```

#### Returns

Type: `int`

### &#x20;GetType Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public System.Type GetType()
```

#### Returns

Type: `System.Type`

### &#x20;MemberwiseClone Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
protected internal object MemberwiseClone()
```

#### Returns

Type: `object`

### &#x20;ReferenceEquals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public static bool ReferenceEquals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;ToString Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public virtual string ToString()
```

#### Returns

Type: `string?`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.