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 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 |
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:- 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
Connect AI agents via MCP
The device’s MCP endpoint allows AI agents to interact with the running application. Use mcporter to bridge the device’s MCP endpoint as a local STDIO server: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.