cdp_command
Call a single Chrome DevTools Protocol command on the current or specified tab.
This record as markdown: /tools/335234131-agent-browser-mcp/cdp-command.md
What cdp_command does on Agent Browser
AI agents invoke cdp_command to trigger actions in Agent Browser. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call: builds kicked off, notifications sent, workflows started.
Why cdp_command is rated High
CDP commands can execute arbitrary browser-level operations including JavaScript execution, network interception, DOM manipulation, file system access, and more. This tool enables full programmatic control of the browser at a low level, which goes beyond simple reads or writes. It could be used to exfiltrate cookies/sessions, inject scripts, navigate to malicious pages, or manipulate authenticated sessions.
From the tool's definition Call a single Chrome DevTools Protocol command on the current or specified tab
Attacks that exploit this kind of access
The rule that runs cdp_command safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Agent Browser, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For cdp_command, this is the rule to start with:
cdp_command stays usable, but rate-capped: a runaway agent can't fire it dozens of times a minute. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Agent Browser, apply this rule, and every cdp_command call is checked against it from then on.
Questions about cdp_command
Call a single Chrome DevTools Protocol command on the current or specified tab. It is categorised as a Execute tool in the Agent Browser MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.
Register the Agent Browser MCP server in PolicyLayer and add a rule for cdp_command: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Agent Browser. Nothing to install.
cdp_command is a Execute tool with high risk. Execute tools should be rate-limited and have argument validation enabled.
Yes. Add a rate_limit block to the cdp_command rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for cdp_command. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
cdp_command is provided by the Agent Browser MCP server (335234131/agent-browser-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Agent Browser, and thousands of servers like it.
Across the catalogue