cdp-driver 0.3.0

Chrome DevTools Protocol client for AI agent browser control
Documentation
// @generated by `just generate-methods` from protocol/*.json.
// Do not edit by hand; edit xtask/ and regenerate.

//! Defines commands and events for browser extensions.
//!
//! Method names for the `Extensions` domain, for use with
//! [`CdpClient::call`](crate::CdpClient::call).
//!
//! This domain is experimental and may change without notice.

/// Runs an extension default action.
///
/// Parameters:
/// - `id`: string
/// - `targetId`: string
pub const TRIGGER_ACTION: &str = "Extensions.triggerAction";

/// Installs an unpacked extension from the filesystem similar to
/// --load-extension CLI flags. Returns extension ID once the extension has
/// been installed.
///
/// Parameters:
/// - `path`: string
/// - `enableInIncognito`: boolean (optional)
///
/// Returns: `id`
pub const LOAD_UNPACKED: &str = "Extensions.loadUnpacked";

/// Gets a list of all unpacked extensions.
///
/// Returns: `extensions`
pub const GET_EXTENSIONS: &str = "Extensions.getExtensions";

/// Uninstalls an unpacked extension (others not supported) from the profile.
///
/// Parameters:
/// - `id`: string
pub const UNINSTALL: &str = "Extensions.uninstall";

/// Gets data from extension storage in the given `storageArea`. If `keys` is
/// specified, these are used to filter the result.
///
/// Parameters:
/// - `id`: string
/// - `storageArea`: StorageArea
/// - `keys`: array (optional)
///
/// Returns: `data`
pub const GET_STORAGE_ITEMS: &str = "Extensions.getStorageItems";

/// Removes `keys` from extension storage in the given `storageArea`.
///
/// Parameters:
/// - `id`: string
/// - `storageArea`: StorageArea
/// - `keys`: array
pub const REMOVE_STORAGE_ITEMS: &str = "Extensions.removeStorageItems";

/// Clears extension storage in the given `storageArea`.
///
/// Parameters:
/// - `id`: string
/// - `storageArea`: StorageArea
pub const CLEAR_STORAGE_ITEMS: &str = "Extensions.clearStorageItems";

/// Sets `values` in extension storage in the given `storageArea`. The
/// provided `values` will be merged with existing values in the storage area.
///
/// Parameters:
/// - `id`: string
/// - `storageArea`: StorageArea
/// - `values`: object
pub const SET_STORAGE_ITEMS: &str = "Extensions.setStorageItems";