assert_text
Verify that a web element contains expected text using a substring match and return PASS or FAIL without throwing errors, so browser automation checks can continue without breaking flow.
Instructions
[Agent Browser] Check if an element contains expected text (substring match). Returns [PASS]/[FAIL] in message - never throws. Use for verification without breaking flow. Returns data.found (bool) and truncated data.text (max 500 chars with context).
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>",
"expected": "<expected>"
},
"name": "assert_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expected | Yes | ||
| selector | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| hints | No | ||
| message | No | ||
| success | No | ||
| suggestions | No |