Definition
Assembly: CloudNimble.ClaudeEssentials.dll Namespace: CloudNimble.ClaudeEssentials.Hooks.Tools.Responses Inheritance: System.ObjectSyntax
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 thetool_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
Constructors
.ctor
Syntax
.ctor Inherited
Inherited from
objectSyntax
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 benull 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 include200 (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 benull 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
objectSyntax
Parameters
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?