assert_visible
Checks whether an element matching a selector is visible and returns a pass/fail result without throwing, so agents can verify page state without stopping the flow.
Instructions
[Agent Browser] Check if an element is visible (never throws). Returns {success: true, data: {visible: true/false}} with [PASS]/[FAIL] in message. Use for verification without breaking the flow on failure.
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>"
},
"name": "assert_visible"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| hints | No | ||
| message | No | ||
| success | No | ||
| suggestions | No |