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
Description
Tool description.
public string Description { get; init; }
Property Value
Frame
Frame the tool was defined for.
public IFrame Frame { get; init; }
Property Value
InputSchema
Schema for the tool's input parameters.
public object InputSchema { get; init; }
Property Value
Location
Source location that defined the tool (if available).
public ConsoleMessageLocation Location { get; init; }
Property Value
Name
Tool name.
public string Name { get; init; }
Property Value
Methods
ExecuteAsync(object)
Executes the tool with the given input parameters.
public Task<WebMcpToolCallResult> ExecuteAsync(object input = null)
Parameters
inputobjectInput object matching the tool's
inputSchema. Defaults to empty object.
Returns
- Task<WebMcpToolCallResult>
A task resolving to the tool call result.