Share via


McpServerToolCallContent Class

Definition

Represents a tool call request to a MCP server.

public ref class McpServerToolCallContent sealed : Microsoft::Extensions::AI::ToolCallContent
public sealed class McpServerToolCallContent : Microsoft.Extensions.AI.ToolCallContent
type McpServerToolCallContent = class
    inherit ToolCallContent
Public NotInheritable Class McpServerToolCallContent
Inherits ToolCallContent
Inheritance
McpServerToolCallContent

Remarks

This content type is used to represent an invocation of an MCP server tool by a hosted service. It is informational only and may appear as part of an approval request to convey what is being approved, or as a record of which MCP server tool was invoked.

Constructors

Name Description
McpServerToolCallContent(String, String, String)

Initializes a new instance of the McpServerToolCallContent class.

Properties

Name Description
AdditionalProperties

Gets or sets additional properties for the content.

(Inherited from AIContent)
Annotations

Gets or sets a list of annotations on this content.

(Inherited from AIContent)
Arguments

Gets or sets the arguments requested to be provided to the tool.

CallId

Gets the tool call ID.

(Inherited from ToolCallContent)
Name

Gets the name of the tool requested.

RawRepresentation

Gets or sets the raw representation of the content from an underlying implementation.

(Inherited from AIContent)
ServerName

Gets the name of the MCP server that hosts the tool.

Applies to