OpenAIResponsesMcpCall

@Serializable
@SerialName(value = "mcp_call")
data class OpenAIResponsesMcpCall(val id: String, val serverLabel: String, val name: String, val arguments: String, val output: String? = null, val error: JsonElement? = null, val status: OpenAIMcpCallStatus? = null, val approvalRequestId: String? = null) : OpenAIResponseInputItem, OpenAIResponseOutputItem

An MCP tool call performed by the model against a configured MCP server.

Constructors

Link copied to clipboard
constructor(id: String, serverLabel: String, name: String, arguments: String, output: String? = null, error: JsonElement? = null, status: OpenAIMcpCallStatus? = null, approvalRequestId: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "approval_request_id")
val approvalRequestId: String?

The ID of the corresponding approval request when the call requires user approval. null otherwise.

Link copied to clipboard

The JSON-encoded arguments passed to the tool.

Link copied to clipboard
val error: JsonElement?

The error from the tool call, when it failed. null on success.

Link copied to clipboard
val id: String

The unique ID of the MCP tool call.

Link copied to clipboard

The name of the tool that was invoked.

Link copied to clipboard

The output of the tool call. null when the call has not completed.

Link copied to clipboard
open override val printableContent: String
Link copied to clipboard
@SerialName(value = "server_label")
val serverLabel: String

The label of the MCP server the tool was invoked on.

Link copied to clipboard

The status of the MCP tool call. null when not reported.