assert
Verify page state against expected conditions like title, URL, visibility, or element count. Returns pass/fail with details to confirm test expectations.
Instructions
Assert a condition about the current page state. Returns pass/fail with details — use this to verify test expectations.
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": {
"type": "<type>"
},
"name": "assert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | The type of assertion to perform | |
| count | No | Expected element count (for element_count type) | |
| expected | No | Expected value or text to match against | |
| selector | No | CSS selector (required for element_exists, element_hidden, input_value, element_count, text_visible with scope) |