Skip to main content

Definition

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

Syntax

Summary

Represents the result of an MCP tool execution.

Remarks

The result is an untagged union, so exactly one of McpToolResponse.Text, McpToolResponse.ContentBlocks, or McpToolResponse.StructuredContent is populated, according to the JSON shape that the tool returned.

Examples

Constructors

.ctor

Syntax

.ctor Inherited

Inherited from object

Syntax

Properties

ContentBlocks

Gets or sets the content blocks, when the tool returned an array.

Syntax

Property Value

Type: System.Collections.Generic.List<CloudNimble.ClaudeEssentials.Hooks.Tools.Responses.McpContentBlock>?

StructuredContent

Gets or sets the structured result, when the tool returned an object.

Syntax

Property Value

Type: System.Collections.Generic.Dictionary<string, System.Text.Json.JsonElement>

Text

Gets or sets the text result, when the tool returned a string.

Syntax

Property Value

Type: string?

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?