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

# WebSearchToolResponse

> Represents the response payload returned by the Claude Code WebSearch tool after performing a web search.

## Definition

**Assembly:** CloudNimble.ClaudeEssentials.dll

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

**Inheritance:** System.Object

## Syntax

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

## Summary

Represents the response payload returned by the Claude Code WebSearch tool after
performing a web search.

## Remarks

The WebSearch tool allows Claude to search the web for up-to-date information beyond
its training data cutoff. This response is received in the
[WebSearchPostToolUsePayload](https://ai.easyaf.dev/claudeessentials/api-reference/CloudNimble/ClaudeEssentials/Hooks/Tools/WebSearchPostToolUsePayload.md) when the
`tool_name` is "WebSearch".

Note: Web search is currently only available in the US region.

Example JSON payload:

```csharp theme={null}
{
  "query": "Claude Code documentation 2025",
  "results": [
    {
      "tool_use_id": "srvtoolu_01ABC123...",
      "content": [
        {
          "title": "Claude Code Documentation",
          "url": "https://docs.anthropic.com/claude-code"
        },
        {
          "title": "Getting Started with Claude Code",
          "url": "https://anthropic.com/claude-code/getting-started"
        }
      ]
    }
  ],
  "durationSeconds": 2.45
}
```

## Constructors

### &#x20;.ctor

#### Syntax

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

### &#x20;.ctor Inherited

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

#### Syntax

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

## Properties

### &#x20;DurationSeconds

Gets or sets the total duration of the search operation in seconds.

#### Syntax

```csharp theme={null}
public double DurationSeconds { get; set; }
```

#### Property Value

Type: `double`

#### Remarks

This includes the time taken to perform the web search and process the results.
Web searches typically complete within a few seconds, but may take longer
depending on network conditions and search complexity.

### &#x20;Query

Gets or sets the search query that was executed.

#### Syntax

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

#### Property Value

Type: `string`

#### Remarks

This is the exact query string that was sent to the search engine.
It matches the [WebSearchToolInput.Query](https://ai.easyaf.dev/claudeessentials/api-reference/CloudNimble/ClaudeEssentials/Hooks/Tools/Inputs/WebSearchToolInput.md#query) from the input.

### &#x20;Results

Gets or sets the search results returned from the web search.

#### Syntax

```csharp theme={null}
public System.Collections.Generic.List<CloudNimble.ClaudeEssentials.Hooks.Tools.Responses.WebSearchResultContainer> Results { get; set; }
```

#### Property Value

Type: `System.Collections.Generic.List<CloudNimble.ClaudeEssentials.Hooks.Tools.Responses.WebSearchResultContainer>`

#### Remarks

Results are grouped into containers, each containing multiple search result items.
The structure allows for multiple result sets from a single search operation.

Use these results to inform responses about current events, recent documentation,
or other information that may have changed since Claude's training data cutoff.

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