Table of Contents

Class InteractionMcpServerToolResultStep

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

The result of an MCP server tool call (mcp_server_tool_result).

public sealed class InteractionMcpServerToolResultStep : InteractionResultStep
Inheritance
InteractionMcpServerToolResultStep
Inherited Members
Extension Methods

Constructors

InteractionMcpServerToolResultStep()

Initializes a new instance of the InteractionMcpServerToolResultStep class.

public InteractionMcpServerToolResultStep()

Properties

Name

Name of the tool which was called.

[JsonPropertyName("name")]
public string? Name { get; set; }

Property Value

string

Result

Required. The output of the MCP server call: a JSON object, a string, or an array of content blocks.

[JsonPropertyName("result")]
public JsonNode? Result { get; set; }

Property Value

JsonNode

ServerName

The name of the MCP server.

[JsonPropertyName("server_name")]
public string? ServerName { get; set; }

Property Value

string