Show in DevTools
devtools_revealReveals a page element in the Elements panel or opens a source file at a specific line in Sources. Use it to jump directly to inspected code; DevTools must be open.
Instructions
Shows something to the user in their open DevTools: an element in the Elements panel (ref or selector), or a source file at a line in the Sources panel (url + line). Requires DevTools to be open on the tab.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "devtools_reveal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref from page_snapshot or find, e.g. "e12". | |
| url | No | Source file URL to open in the Sources panel. | |
| line | No | 1-based line number. | |
| tabId | No | Tab to act on. Defaults to the session target tab (see tab_select). | |
| column | No | 1-based column number. | |
| selector | No | CSS selector of the element. |