Skip to main content

cdp_driver/methods/
web_mcp.rs

1// @generated by `just generate-methods` from protocol/*.json.
2// Do not edit by hand; edit xtask/ and regenerate.
3
4//! The `WebMCP` domain.
5//!
6//! Method names for the `WebMCP` domain, for use with
7//! [`CdpClient::call`](crate::CdpClient::call).
8//!
9//! This domain is experimental and may change without notice.
10
11/// Enables the WebMCP domain, allowing events to be sent. Enabling the domain
12/// will trigger a toolsAdded event for all currently registered tools.
13pub const ENABLE: &str = "WebMCP.enable";
14
15/// Disables the WebMCP domain.
16pub const DISABLE: &str = "WebMCP.disable";
17
18/// Invokes a registered tool.
19///
20/// Parameters:
21/// - `frameId`: Page.FrameId
22/// - `toolName`: string
23/// - `input`: object
24///
25/// Returns: `invocationId`
26pub const INVOKE_TOOL: &str = "WebMCP.invokeTool";
27
28/// Cancels a pending tool invocation.
29///
30/// Parameters:
31/// - `invocationId`: string
32pub const CANCEL_INVOCATION: &str = "WebMCP.cancelInvocation";