Share via


McpServerToolCallContent(String, String, String) Constructor

Definition

Initializes a new instance of the McpServerToolCallContent class.

public:
 McpServerToolCallContent(System::String ^ callId, System::String ^ name, System::String ^ serverName);
public McpServerToolCallContent(string callId, string name, string? serverName);
new Microsoft.Extensions.AI.McpServerToolCallContent : string * string * string -> Microsoft.Extensions.AI.McpServerToolCallContent
Public Sub New (callId As String, name As String, serverName As String)

Parameters

callId
String

The tool call ID.

name
String

The tool name.

serverName
String

The MCP server name that hosts the tool.

Exceptions

callId or name is null.

callId or name is empty or composed entirely of whitespace.

Remarks

This content 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.

Applies to