find
Locate web elements by semantic strategy such as text, label, role, testid, xpath, alt, title, or CSS selector to enable precise interactions during browser automation.
Instructions
Locate elements by semantic strategy (text/label/placeholder/role/testid/xpath/alt/title/css).
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": {
"kind": "<kind>",
"query": "<query>"
},
"name": "find"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | text|label|placeholder|role|testid|xpath|alt|title|css | |
| name | No | Accessible name (role kind only). | |
| exact | No | Exact match. | |
| lease | No | Optional lease token to present if the target session is leased (0.7.0). Threaded per-call; never read from the server's env. | |
| query | Yes | Search query. | |
| session | No | Optional session name to target (omit for the shared 'default'). On a daemon shared with other agents, pass a UNIQUE name for stateful multi-step work (go→click→fill) so you don't collide on 'default'. |