selector_for
Builds a CSS selector and XPath for a page element from its tag, ID, test hook, or position; for shadow-root or iframe elements, it returns a query_selector-followable chain.
Instructions
A CSS selector and an XPath for one element, built from its tag, id, test-hook or position. For an element in a shadow root or an iframe it answers with a chain that query_selector follows.
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": "selector_for"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||