Table of Contents

Class Tool

Namespace
OpenQA.Selenium.DevTools.V147.WebMCP
Assembly
Selenium.WebDriver.dll

Definition of a tool that can be invoked.

public sealed class Tool
Inheritance
Tool
Inherited Members

Properties

Annotations

Optional annotations for the tool.

[JsonPropertyName("annotations")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public Annotation? Annotations { get; set; }

Property Value

Annotation

BackendNodeId

Optional node ID for declarative tools.

[JsonPropertyName("backendNodeId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? BackendNodeId { get; set; }

Property Value

long?

Description

Tool description.

[JsonPropertyName("description")]
public string Description { get; set; }

Property Value

string

FrameId

Frame identifier associated with the tool registration.

[JsonPropertyName("frameId")]
public string FrameId { get; set; }

Property Value

string

InputSchema

Schema for the tool's input parameters.

[JsonPropertyName("inputSchema")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public object? InputSchema { get; set; }

Property Value

object

Name

Tool name.

[JsonPropertyName("name")]
public string Name { get; set; }

Property Value

string

StackTrace

The stack trace at the time of the registration.

[JsonPropertyName("stackTrace")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public StackTrace? StackTrace { get; set; }

Property Value

StackTrace