> ## 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.

# BashToolResponse

> Represents the response payload returned by the Claude Code Bash tool after executing a shell command.

## Definition

**Assembly:** CloudNimble.ClaudeEssentials.dll

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

**Inheritance:** System.Object

## Syntax

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

## Summary

Represents the response payload returned by the Claude Code Bash tool after executing
a shell command.

## Remarks

The Bash tool executes shell commands in a persistent shell session. This response is
received in the [BashPostToolUsePayload](https://ai.easyaf.dev/claudeessentials/api-reference/CloudNimble/ClaudeEssentials/Hooks/Tools/BashPostToolUsePayload.md)
when the `tool_name` is "Bash".

Commands have a default timeout of 120 seconds (2 minutes), which can be extended
up to 600 seconds (10 minutes) using the [BashToolInput.Timeout](https://ai.easyaf.dev/claudeessentials/api-reference/CloudNimble/ClaudeEssentials/Hooks/Tools/Inputs/BashToolInput.md#timeout) parameter.
If a command exceeds its timeout, it will be interrupted and [BashToolResponse.Interrupted](https://ai.easyaf.dev/claudeessentials/api-reference/CloudNimble/ClaudeEssentials/Hooks/Tools/Responses/BashToolResponse.md#interrupted)
will be `true`.

Output exceeding 30,000 characters is automatically truncated by Claude Code.

Example JSON payload:

```csharp theme={null}
{
  "stdout": "Hello, World!\r\n",
  "stderr": "",
  "interrupted": false,
  "isImage": false
}
```

## Constructors

### &#x20;.ctor

#### Syntax

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

### &#x20;.ctor Inherited

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

#### Syntax

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

## Properties

### &#x20;Interrupted

Gets or sets a value indicating whether the command was interrupted before completion.

#### Syntax

```csharp theme={null}
public bool Interrupted { get; set; }
```

#### Property Value

Type: `bool`

#### Remarks

When `true`, the command did not complete normally. This typically occurs when:

* The command exceeded its timeout (default 120 seconds, max 600 seconds)
* The user manually cancelled the operation
* The command was killed by the system

When a command is interrupted, [BashToolResponse.Stdout](https://ai.easyaf.dev/claudeessentials/api-reference/CloudNimble/ClaudeEssentials/Hooks/Tools/Responses/BashToolResponse.md#stdout) and [BashToolResponse.Stderr](https://ai.easyaf.dev/claudeessentials/api-reference/CloudNimble/ClaudeEssentials/Hooks/Tools/Responses/BashToolResponse.md#stderr) will
contain whatever output was captured before the interruption occurred.

### &#x20;IsImage

Gets or sets a value indicating whether the output contains image data.

#### Syntax

```csharp theme={null}
public bool IsImage { get; set; }
```

#### Property Value

Type: `bool`

#### Remarks

When `true`, the command produced image output that Claude can interpret
visually. This is used for commands that generate images or graphical output.

Claude is a multimodal LLM and can process image data directly. When this is
`true`, the [BashToolResponse.Stdout](https://ai.easyaf.dev/claudeessentials/api-reference/CloudNimble/ClaudeEssentials/Hooks/Tools/Responses/BashToolResponse.md#stdout) may contain base64-encoded image data
or be empty while the image is presented to Claude separately.

### &#x20;Stderr

Gets or sets the standard error (stderr) output from the executed command.

#### Syntax

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

#### Property Value

Type: `string`

#### Remarks

This contains all text written to stderr by the command. Many commands write
warnings, progress information, or diagnostic messages to stderr even when
successful.

An empty [BashToolResponse.Stderr](https://ai.easyaf.dev/claudeessentials/api-reference/CloudNimble/ClaudeEssentials/Hooks/Tools/Responses/BashToolResponse.md#stderr) does not necessarily indicate success, and a
non-empty [BashToolResponse.Stderr](https://ai.easyaf.dev/claudeessentials/api-reference/CloudNimble/ClaudeEssentials/Hooks/Tools/Responses/BashToolResponse.md#stderr) does not necessarily indicate failure. Check
the actual content and context to determine the command's success.

### &#x20;Stdout

Gets or sets the standard output (stdout) from the executed command.

#### Syntax

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

#### Property Value

Type: `string`

#### Remarks

This contains all text written to stdout by the command. On Windows, line endings
will typically be CRLF (`\r\n`), while on Unix-like systems they will be LF (`\n`).

If the output exceeds 30,000 characters, it will be truncated by Claude Code.

For commands that produce binary output (like image generation), this may be empty
and [BashToolResponse.IsImage](https://ai.easyaf.dev/claudeessentials/api-reference/CloudNimble/ClaudeEssentials/Hooks/Tools/Responses/BashToolResponse.md#isimage) will be `true`.

## 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.