WebMcpTool
Namespace: PuppeteerSharp.Cdp
public class WebMcpToolRepresents a registered WebMCP tool available on the page.
Inheritance: object
Properties
Section titled “Properties”Annotations
Section titled “Annotations”public WebMcpAnnotation Annotations { get; init; }Optional annotations for the tool.
Value: WebMcpAnnotation
Description
Section titled “Description”public string Description { get; init; }Tool description.
Value: string
public IFrame Frame { get; init; }Frame the tool was defined for.
Value: IFrame
InputSchema
Section titled “InputSchema”public object InputSchema { get; init; }Schema for the tool’s input parameters.
Value: object
Location
Section titled “Location”public ConsoleMessageLocation Location { get; init; }Source location that defined the tool (if available).
Value: ConsoleMessageLocation
public string Name { get; init; }Tool name.
Value: string
Methods
Section titled “Methods”ExecuteAsync(object, WebMcpToolExecuteOptions)
Section titled “ExecuteAsync(object, WebMcpToolExecuteOptions)”public Task<WebMcpToolCallResult> ExecuteAsync(object input = null, WebMcpToolExecuteOptions options = null)Executes the tool with the given input parameters.
Parameters
| Name | Type | Description |
|---|---|---|
input |
object | Input object matching the tool’s inputSchema. Defaults to empty object. |
options |
WebMcpToolExecuteOptions | Optional execution options, including a cancellation token. |
Returns: Task<WebMcpToolCallResult> — A task resolving to the tool call result.
Made with love by Dario Kondratiuk