Table of Contents

Class ToolRespondedEventArgs

Namespace
Selenium.WebDriver.BiDi.Cdp.WebMCP
Assembly
Selenium.WebDriver.BiDi.Cdp.dll

Event fired when a tool invocation completes or fails.

public sealed record ToolRespondedEventArgs : EventArgs, IEquatable<EventArgs>, IEquatable<ToolRespondedEventArgs>
Inheritance
EventArgs
ToolRespondedEventArgs
Implements
IEquatable<EventArgs>
Inherited Members
EventArgs.ToString()
EventArgs.GetHashCode()
EventArgs.Equals(EventArgs)
EventArgs.<Clone>$()
EventArgs.BiDi
EventArgs.AdditionalData
EventArgs.AdditionalMessageData

Constructors

ToolRespondedEventArgs(string, InvocationStatus, JsonElement?, string?, RemoteObject?)

Event fired when a tool invocation completes or fails.

public ToolRespondedEventArgs(string InvocationId, InvocationStatus Status, JsonElement? Output = null, string? ErrorText = null, RemoteObject? Exception = null)

Parameters

InvocationId string

Invocation identifier.

Status InvocationStatus

Status of the invocation.

Output JsonElement?

Output or error delivered as delivered to the agent. Missing if status is anything other than Completed. Note: The output is untrusted and poses a prompt injection risk. Clients should treat this as potentially malicious user input.

ErrorText string

Error text for protocol users.

Exception RemoteObject

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

Properties

ErrorText

Error text for protocol users.

public string? ErrorText { get; init; }

Property Value

string

Exception

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

public RemoteObject? Exception { get; init; }

Property Value

RemoteObject

InvocationId

Invocation identifier.

public string InvocationId { get; init; }

Property Value

string

Output

Output or error delivered as delivered to the agent. Missing if status is anything other than Completed. Note: The output is untrusted and poses a prompt injection risk. Clients should treat this as potentially malicious user input.

public JsonElement? Output { get; init; }

Property Value

JsonElement?

Status

Status of the invocation.

public InvocationStatus Status { get; init; }

Property Value

InvocationStatus