element_to_selector
Return a unique CSS selector from a snapshot UID to enable Chrome DevTools MCP click and fill actions. Requires a preceding smart snapshot or snapshot diff.
Instructions
Return a unique CSS selector for a snapshot uid (for chrome-devtools-mcp click/fill). Requires smart_snapshot or snapshot_diff first.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"uid": "<uid>"
},
"name": "element_to_selector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | Stable uid from the snapshot output. |