find
Locate page elements by visible text or HTML tag and return ready-to-use CSS selectors. Use this instead of reading the entire page to find buttons, links, or fields.
Instructions
Locate elements on a tab by visible text and/or tag and get a ready-to-use CSS selector for each — one fast call that searches the page server-side and returns ~1 KB instead of the whole HTML. Use this INSTEAD of read_page to find a button, link, or field, then pass the returned selector straight to click/type/etc. Provide text, tag, or both. Active tab unless browserId given.
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": "find"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Visible text to match (substring, case-insensitive). | |
| tag | No | Restrict to a tag, e.g. "button", "a", "input", "select". | |
| limit | No | Max matches to return. Default 25. | |
| browserId | No | Target tab (from list_tabs). Defaults to active. |