refs
Retrieve interactive elements with stable handles (CDP backendNodeId) for browser automation. Filter by selector and tab to target specific elements.
Instructions
refs() → [{ref, tag, text}] — 可交互元素 + 稳定句柄(CDP backendNodeId)。
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": "refs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | ||
| selector | No | ||
| max_items | No |