cdp-driver 0.5.0

Chrome DevTools Protocol (CDP) client for Rust: every command, event and type generated from the schema, with sessions, for browser automation and AI agents
Documentation
// @generated by `just generate-methods` from protocol/*.json.
// Do not edit by hand; edit xtask/ and regenerate.

//! The `WebMCP` domain.
//!
//! Method names for the `WebMCP` domain, for use with
//! [`CdpClient::call`](crate::CdpClient::call).
//!
//! This domain is experimental and may change without notice.

/// Enables the WebMCP domain, allowing events to be sent. Enabling the domain
/// will trigger a toolsAdded event for all currently registered tools.
pub const ENABLE: &str = "WebMCP.enable";

/// Disables the WebMCP domain.
pub const DISABLE: &str = "WebMCP.disable";

/// Invokes a registered tool.
///
/// Parameters:
/// - `frameId`: Page.FrameId
/// - `toolName`: string
/// - `input`: object
///
/// Returns: `invocationId`
pub const INVOKE_TOOL: &str = "WebMCP.invokeTool";

/// Cancels a pending tool invocation.
///
/// Parameters:
/// - `invocationId`: string
pub const CANCEL_INVOCATION: &str = "WebMCP.cancelInvocation";