get_inspected_element
Retrieve the element marked for inspection in Chrome DevTools to enable AI agents to access its details. Returns an error if no element is marked.
Instructions
Get the element marked for MCP inspection. To mark an element: select it in the Elements panel, then run window.$0 = $0 in the DevTools console. Returns an error if no element is marked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| tagName | Yes | ||
| className | No | ||
| outerHTML | Yes | First 5000 characters of element outerHTML | |
| attributes | Yes |