Skip to content

CdpWebMcp

Namespace: PuppeteerSharp.Cdp

[SuppressMessage("Microsoft.Design", "CA1001:TypesThatOwnDisposableFieldsShouldBeDisposable", Justification = "Listener subscriptions are disposed in UpdateClient via DisposableActionsStack.")]
public class CdpWebMcp

Experimental WebMCP API. Requires Chrome 149+ with –enable-features=WebMCP flag.

Inheritance: object

View source

public event EventHandler<WebMcpToolCall> ToolInvoked

Emitted when a tool invocation starts.

Value: EventHandler<WebMcpToolCall>

View source

public event EventHandler<WebMcpToolCallResult> ToolResponded

Emitted when a tool invocation completes or fails.

Value: EventHandler<WebMcpToolCallResult>

View source

public event EventHandler<WebMcpToolsAddedEventArgs> ToolsAdded

Emitted when tools are added to the page.

Value: EventHandler<WebMcpToolsAddedEventArgs>

View source

public event EventHandler<WebMcpToolsRemovedEventArgs> ToolsRemoved

Emitted when tools are removed from the page.

Value: EventHandler<WebMcpToolsRemovedEventArgs>

View source

public WebMcpTool[] Tools()

Gets all WebMCP tools registered on the page.

Returns: WebMcpTool\[\] — Array of registered tools.

View source

Made with love by Dario Kondratiuk