ResponseEventStream.AddOutputItemMcpCall(String, String) Method

Definition

Creates an MCP tool call output item scope with the next output index and an auto-generated item ID.

public virtual Azure.AI.AgentServer.Responses.OutputItemMcpCallBuilder AddOutputItemMcpCall(string serverLabel, string name);
abstract member AddOutputItemMcpCall : string * string -> Azure.AI.AgentServer.Responses.OutputItemMcpCallBuilder
override this.AddOutputItemMcpCall : string * string -> Azure.AI.AgentServer.Responses.OutputItemMcpCallBuilder
Public Overridable Function AddOutputItemMcpCall (serverLabel As String, name As String) As OutputItemMcpCallBuilder

Parameters

serverLabel
String

The MCP server label.

name
String

The tool name.

Returns

A new OutputItemMcpCallBuilder for the MCP tool call output item.

Applies to