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

# WebFetchToolResponse

> Represents the response payload returned by the Claude Code WebFetch tool after fetching and processing content from a URL.

## Definition

**Assembly:** CloudNimble.ClaudeEssentials.dll

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

**Inheritance:** System.Object

## Syntax

```csharp theme={"dark"}
CloudNimble.ClaudeEssentials.Hooks.Tools.Responses.WebFetchToolResponse
```

## Summary

Represents the response payload returned by the Claude Code WebFetch tool after
fetching and processing content from a URL.

## Remarks

The WebFetch tool retrieves content from a specified URL, converts HTML to markdown,
and processes it using a small, fast model based on the provided prompt. This response
is received in the [WebFetchPostToolUsePayload](https://si.easyaf.dev/claudeessentials/api-reference/CloudNimble/ClaudeEssentials/Hooks/Tools/WebFetchPostToolUsePayload.md)
when the `tool_name` is "WebFetch".

Key features of the WebFetch tool:

* HTTP URLs are automatically upgraded to HTTPS
* Content is converted from HTML to markdown for easier processing
* Large content may be summarized or truncated
* Includes a 15-minute cache for repeated requests to the same URL

Example JSON payload:

```csharp theme={"dark"}
{
  "url": "https://docs.anthropic.com/claude-code",
  "bytes": 45210,
  "code": 200,
  "codeText": "OK",
  "result": "Claude Code is a CLI tool...",
  "durationMs": 1250
}
```

## Constructors

### &#x20;.ctor

#### Syntax

```csharp theme={"dark"}
public WebFetchToolResponse()
```

### &#x20;.ctor Inherited

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

#### Syntax

```csharp theme={"dark"}
public Object()
```

## Properties

### &#x20;ArtifactRead

Gets or sets the artifact and version that now count as viewed.

#### Syntax

```csharp theme={"dark"}
public CloudNimble.ClaudeEssentials.Hooks.Tools.Responses.ArtifactReadInfo ArtifactRead { get; set; }
```

#### Property Value

Type: `CloudNimble.ClaudeEssentials.Hooks.Tools.Responses.ArtifactReadInfo?`

### &#x20;Bytes

Gets or sets the number of bytes in the raw response body before processing.

#### Syntax

```csharp theme={"dark"}
public long Bytes { get; set; }
```

#### Property Value

Type: `long`

#### Remarks

This indicates the size of the original content fetched from the URL before
any markdown conversion or summarization was applied.

This property may be `null` for older-style responses that do not include
byte-level metrics.

### &#x20;Code

Gets or sets the HTTP status code returned by the server.

#### Syntax

```csharp theme={"dark"}
public int Code { get; set; }
```

#### Property Value

Type: `int`

#### Remarks

Common values include `200` (OK), `301` (Moved Permanently),
`404` (Not Found), etc.

This property may be `null` for older-style responses that do not include
the HTTP status code.

### &#x20;CodeText

Gets or sets the HTTP status text corresponding to [WebFetchToolResponse.Code](https://si.easyaf.dev/claudeessentials/api-reference/CloudNimble/ClaudeEssentials/Hooks/Tools/Responses/WebFetchToolResponse.md#code).

#### Syntax

```csharp theme={"dark"}
public string CodeText { get; set; }
```

#### Property Value

Type: `string`

#### Remarks

For example, `"OK"` for a 200 response or `"Moved Permanently"` for a 301 redirect.

This property may be `null` for older-style responses that do not include
the HTTP status text.

### &#x20;DurationMs

Gets or sets the duration of the fetch and processing operation in milliseconds.

#### Syntax

```csharp theme={"dark"}
public int DurationMs { get; set; }
```

#### Property Value

Type: `int`

#### Remarks

This includes the time taken to fetch the URL content, convert HTML to markdown,
and process the content with the specified prompt.

This property may be `null` when duration information is not available.

### &#x20;Result

Gets or sets the processed result text from the fetched URL.

#### Syntax

```csharp theme={"dark"}
public string Result { get; set; }
```

#### Property Value

Type: `string`

#### Remarks

This is the result of applying the prompt to the fetched content.

### &#x20;Url

Gets or sets the URL that was fetched.

#### Syntax

```csharp theme={"dark"}
public string Url { get; set; }
```

#### Property Value

Type: `string`

#### Remarks

This is the actual URL that was requested. If the original URL used HTTP,
it will have been upgraded to HTTPS.

## Methods

### &#x20;Equals Inherited Virtual

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

#### Syntax

```csharp theme={"dark"}
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={"dark"}
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={"dark"}
public virtual int GetHashCode()
```

#### Returns

Type: `int`

### &#x20;GetType Inherited

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

#### Syntax

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

#### Returns

Type: `System.Type`

### &#x20;MemberwiseClone Inherited

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

#### Syntax

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

#### Returns

Type: `object`

### &#x20;ReferenceEquals Inherited

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

#### Syntax

```csharp theme={"dark"}
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={"dark"}
public virtual string ToString()
```

#### Returns

Type: `string?`


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