connect_to_browser

Connect to an existing Chrome instance with remote debugging enabled. Establishes a connection to a Chrome browser that's already running with remote debugging enabled on the specified port. Enables necessary DevTools Protocol domains and retrieves browser information. This function is useful whe...

SERVERChrome Devtools SOURCEbenjaminr/chrome-devtools-mcp
High RISK CLASS
Category Execute
Parameters 00 required
Recommended Rate-limitedsee the rule below
Registry record Grade F, identity unverified Pull the record →

This record as markdown: /tools/benjaminr-chrome-devtools-mcp/connect-to-browser.md

What connect_to_browser does on Chrome Devtools

AI agents invoke connect_to_browser to trigger actions in Chrome Devtools. 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 connect_to_browser is rated High

Connecting to a Chrome instance with remote debugging enabled establishes a control channel that allows programmatic manipulation of the browser. This is an execution-oriented action that triggers external operations (browser control via DevTools Protocol). Combined with sibling tools like execute_javascript and evaluate_in_all_frames, this connection is the gateway to high-impact browser control.

From the tool's definition Connect to an existing Chrome instance with remote debugging enabled... control it programmatically... Enables necessary DevTools Protocol domains

Questions about connect_to_browser

What does the connect_to_browser tool do? +

Connect to an existing Chrome instance with remote debugging enabled. Establishes a connection to a Chrome browser that's already running with remote debugging enabled on the specified port. Enables necessary DevTools Protocol domains and retrieves browser information. This function is useful when Chrome is already running (perhaps started manually or by another process) and you want to control it programmatically. It verifies the browser is accessible before attempting connection. Args: port: TCP port where Chrome remote debugging is listening (default: 9222). Chrome must be started with --remote-debugging-port=PORT for this to work. Returns: Connection status dictionary containing: - success: Boolean indicating connection success - message: Human-readable status description - data: Connection details including: - connected: Boolean connection status - port: Port Chrome is running on - targetInfo: Browser version and capability information Note: If Chrome is not running on the specified port, the function returns an error response with suggestions for starting Chrome with the correct debugging options. It is categorised as a Execute tool in the Chrome Devtools MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.

How do I enforce a policy on connect_to_browser? +

Register the Chrome Devtools MCP server in PolicyLayer and add a rule for connect_to_browser: 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 Chrome Devtools. Nothing to install.

What risk level is connect_to_browser? +

connect_to_browser is a Execute tool with high risk. Execute tools should be rate-limited and have argument validation enabled.

Can I rate-limit connect_to_browser? +

Yes. Add a rate_limit block to the connect_to_browser 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.

How do I block connect_to_browser completely? +

Set action: deny in the PolicyLayer policy for connect_to_browser. 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.

What MCP server provides connect_to_browser? +

connect_to_browser is provided by the Chrome Devtools MCP server (benjaminr/chrome-devtools-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

More on Chrome Devtools, and thousands of servers like it.

// THE MCP REGISTRY

PolicyLayer tracks 44,603 MCP servers and 515,000+ tools.

Every server has a live record: who publishes it, whether it answers without auth, its risk grade, every tool classified, the recommended policy. This page is one line of Chrome Devtools's. Pull the full record:

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.