Skip to main content
Glama

edge_cdp_execute

Execute raw Chrome/Edge DevTools Protocol commands on the active page to inspect network activity, capture screenshots, emulate devices, or collect performance metrics.

Instructions

Execute a raw Chrome/Edge DevTools Protocol (CDP) command directly on the active page (e.g. 'Network.getCookies', 'Page.captureScreenshot', 'Emulation.setDeviceMetricsOverride', 'Performance.getMetrics', 'Storage.clearDataForOrigin'). Gives 100% full DevTools power to the AI agent.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "method": "<method>"
    },
    "name": "edge_cdp_execute"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdNoTarget tab ID (if omitted, uses active tab)
methodYesCDP method name formatted as 'Domain.action' (e.g. 'Network.enable', 'Page.printToPDF', 'DOM.getDocument')
paramsNoOptional dictionary of parameters matching the CDP method signature

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.8/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description must carry behavioral disclosure, and it does not say whether CDP commands can mutate or destroy page state, require prior domain enabling, need permissions, or how errors are returned. The 'Storage.clearDataForOrigin' example implies destructive capability, but the text does not warn about irreversibility or scope. 'Gives 100% full DevTools power' is promotional rather than operational.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence is front-loaded and useful, packing purpose and examples into one sentence. The second sentence is promotional fluff ('Gives 100% full DevTools power') that does not help selection or invocation, so the description is not fully tight.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a high-complexity, arbitrary-CDP escape hatch with no annotations and no output schema. The schema documents the three parameters, but the description omits essential context: when to use it versus dedicated tools, safety around destructive CDP methods, prerequisites, and failure behavior. It is incomplete for the risk profile.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so method, params, and tabId are already documented by the input schema. The description adds example CDP method names and reinforces the active-page default, but no extra semantics about params shape, tabId behavior, or method-specific requirements beyond the schema. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('Execute') and resource ('raw Chrome/Edge DevTools Protocol command') and lists concrete CDP method examples, so the agent knows this is a low-level escape hatch. It does not explicitly contrast itself with higher-level siblings such as edge_take_screenshot or edge_manage_cookies, leaving differentiation to inference from 'raw'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use or when-not-to-use guidance is given. The examples show possible CDP methods, but the description never says to prefer dedicated sibling tools for common operations or reserve this for commands with no higher-level wrapper.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.