Assert page state
ui_assertAssert UI conditions on a live page with text-only checks for text, visibility, counts, console errors, overflow, and accessibility, returning pass/fail with evidence.
Instructions
Run cheap text-only checks against a live page: text present, element visible/hidden, element count, no console errors, no horizontal overflow, no a11y violations. Returns pass/fail with short evidence. Never returns images.
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": {
"url": "<url>",
"checks": "<checks>"
},
"name": "ui_assert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| checks | Yes | ||
| waitFor | No | CSS selector to wait for, or ms to wait | |
| darkMode | No | ||
| viewport | No |