Skip to main content

Definition

Assembly: CloudNimble.ClaudeEssentials.dll Namespace: CloudNimble.ClaudeEssentials.Hooks.Tools.Responses Inheritance: System.Object

Syntax

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 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:

Constructors

.ctor

Syntax

.ctor Inherited

Inherited from object

Syntax

Properties

ArtifactRead

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

Syntax

Property Value

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

Bytes

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

Syntax

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.

Code

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

Syntax

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.

CodeText

Gets or sets the HTTP status text corresponding to WebFetchToolResponse.Code.

Syntax

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.

DurationMs

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

Syntax

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.

Result

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

Syntax

Property Value

Type: string

Remarks

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

Url

Gets or sets the URL that was fetched.

Syntax

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

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?