connect
Attach the debugger to a specific Chrome tab by providing a unique substring of its URL, after confirming the target with the user. Enables breakpoints, variable inspection, and step-through debugging via Chrome DevTools Protocol.
Instructions
[STEP 3] Connect the debugger to a specific Chrome tab. MANDATORY: call listTargets first, show the list to the user, wait for their explicit URL confirmation, then call this. NEVER guess the URL. NEVER skip user confirmation — even if only one tab is visible. targetUrl must be a unique substring of the tab URL the user confirmed (e.g. "localhost:5173"). Relay the "_ui" field from the response to the user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Chrome remote debugging port (default 9222) | |
| targetUrl | Yes | Unique substring of the tab URL confirmed by the user (e.g. 'localhost:5173'). REQUIRED — always obtain from user confirmation. |