Table of Contents

Class Tool

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

Definition of a tool that can be invoked.

public sealed record Tool : IEquatable<Tool>
Inheritance
Tool
Implements
Inherited Members

Constructors

Tool(string, string, FrameId)

Definition of a tool that can be invoked.

public Tool(string Name, string Description, FrameId FrameId)

Parameters

Name string

Tool name.

Description string

Tool description.

FrameId FrameId

Frame identifier associated with the tool registration.

Properties

Annotations

Optional annotations for the tool.

public Annotation? Annotations { get; init; }

Property Value

Annotation

BackendNodeId

Optional node ID for declarative tools.

public BackendNodeId? BackendNodeId { get; init; }

Property Value

BackendNodeId

Description

Tool description.

public string Description { get; init; }

Property Value

string

FrameId

Frame identifier associated with the tool registration.

public FrameId FrameId { get; init; }

Property Value

FrameId

InputSchema

Schema for the tool's input parameters.

public JsonElement? InputSchema { get; init; }

Property Value

JsonElement?

Name

Tool name.

public string Name { get; init; }

Property Value

string

StackTrace

The stack trace at the time of the registration.

public StackTrace? StackTrace { get; init; }

Property Value

StackTrace