Table of Contents

Class WebMcpTool

Namespace
PuppeteerSharp.Cdp
Assembly
PuppeteerSharp.dll

Represents a registered WebMCP tool available on the page.

public class WebMcpTool
Inheritance
WebMcpTool

Properties

Annotations

Optional annotations for the tool.

public WebMcpAnnotation Annotations { get; init; }

Property Value

WebMcpAnnotation

Description

Tool description.

public string Description { get; init; }

Property Value

string

Frame

Frame the tool was defined for.

public IFrame Frame { get; init; }

Property Value

IFrame

InputSchema

Schema for the tool's input parameters.

public object InputSchema { get; init; }

Property Value

object

Location

Source location that defined the tool (if available).

public ConsoleMessageLocation Location { get; init; }

Property Value

ConsoleMessageLocation

Name

Tool name.

public string Name { get; init; }

Property Value

string

Methods

ExecuteAsync(object)

Executes the tool with the given input parameters.

public Task<WebMcpToolCallResult> ExecuteAsync(object input = null)

Parameters

input object

Input object matching the tool's inputSchema. Defaults to empty object.

Returns

Task<WebMcpToolCallResult>

A task resolving to the tool call result.