BRICKS Foundation implements the Chrome DevTools Protocol (CDP), providing a frontend-like debugging experience for your applications. Connect via Chrome DevTools to inspect the DOM, debug JavaScript, profile performance, and view console logs. You can also connect CDP-supported tools like Puppeteer or Playwright to write automation scripts or connect via AI agents. An MCP endpoint is also provided for AI agent integration.Documentation Index
Fetch the complete documentation index at: https://docs.bricks.tools/llms.txt
Use this file to discover all available pages before exploring further.
Enable DevTools on the device
Discover devices
Use the BRICKS CLI to scan your local network for devices with DevTools enabled:Devices must have Enable LAN Discovery turned on in advanced settings for network scanning to work. This is enabled by default.
DevTools endpoints
Once you find a device, usebricks devtools open with the --info flag to view all available endpoints:
| Endpoint | Description |
|---|---|
| Web UI | Open this URL in your browser to access the DevTools landing page |
| CDP | Chrome DevTools Protocol endpoint for direct connection |
| MCP | Model Context Protocol endpoint for AI agent integration |
| MCP SSE | MCP endpoint using Server-Sent Events transport |
| Info | JSON metadata endpoint at /devtools/info describing the device, version, and protocols |
Authorization: Bearer <passcode> header required by the MCP and MCP SSE endpoints.
Without --info, the command shows server identity (name, version, device ID, workspace, protocols, and authentication state).
Open the DevTools page
Open the Web UI URL in your browser to access the DevTools landing page. From there you can inspect the running application, view available debug targets, and connect to the device.Connect with Chrome
You can also connect directly through Chrome:- Enable Expose endpoints for chrome://inspect in advanced settings
- Open
chrome://inspectin Chrome - Your device appears in the list of remote targets
- Click inspect to open a DevTools window connected to the running application
Inspect via BRICKS CLI (CDP)
Requires BRICKS Foundation version 2.24 or later.
--passcode if the device requires authentication. See the CLI command reference for the full list of CDP commands.
What you can do with DevTools
With Chrome DevTools connected, you can:- Elements — Inspect and modify the rendered DOM
- Console — View logs, warnings, and errors from the application
- Sources — Debug JavaScript with breakpoints
- Network — Monitor network requests made by generators
- Performance — Profile rendering and script execution
- Memory — Analyze memory usage and detect leaks
Next steps
Remote debugging
Debug devices remotely via BRICKS Controller without local network access.
Debug panel
Use the on-device overlay to inspect runtime state.