断言校验
browser_assertVerify that a browser step actually worked by checking URL, title, text, selectors, values, console or network, returning pass/fail with expected versus actual values.
Instructions
Verify that what you just did actually worked. Pass one or more checks; each is reported as passed or failed with expected vs actual, and the tool returns isError when any check fails — that is how you distinguish "the click happened" from "the feature works". Supported kinds: url, title, text, selector, count, value, checked, attribute, console, network. match defaults to contains for text-like kinds, equals for count/console, and exists for selector. Use this after every meaningful step of a website test.
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": {
"checks": "<checks>"
},
"name": "browser_assert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No | Tab id (default: active tab) | |
| checks | Yes | Assertions to verify, evaluated in order |