ToolRespondedParameter

@Serializable
data class ToolRespondedParameter(val invocationId: String, val status: WebMCP.InvocationStatus, val output: JsonElement? = null, val errorText: String? = null, val exception: Runtime.RemoteObject? = null)

Event fired when a tool invocation completes or fails.

Constructors

Link copied to clipboard
constructor(invocationId: String, status: WebMCP.InvocationStatus, output: JsonElement? = null, errorText: String? = null, exception: Runtime.RemoteObject? = null)

Properties

Link copied to clipboard
val errorText: String? = null

Error text for protocol users.

Link copied to clipboard

The exception object, if the javascript tool threw an error>

Link copied to clipboard

Invocation identifier.

Link copied to clipboard
val output: JsonElement? = null

Output or error delivered as delivered to the agent. Missing if status is anything other than Success.

Link copied to clipboard

Status of the invocation.