click_nth
Clicks a specific element by zero-based index when multiple elements match a selector, helping resolve strict-mode violation errors by targeting the intended item.
Instructions
[Agent Browser] Click the nth element matching a selector (0-indexed). Use when multiple elements match and you need a specific one (e.g., 2nd button). Prefer this over click() when you get 'strict mode violation' errors.
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": {
"selector": "<selector>",
"index": "<index>"
},
"name": "click_nth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| selector | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| hints | No | ||
| message | No | ||
| success | No | ||
| suggestions | No |