run_assertion
Checks a condition on the current page and reports PASS or FAIL, enabling automated verification of Chrome extension behavior.
Instructions
Run a test assertion against the current page. Checks a condition and reports PASS or FAIL.
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": {
"description": "<description>"
},
"name": "run_assertion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | No | JS expression that must return true to pass (overrides selector) | |
| selector | No | CSS selector to check existence or text content of | |
| description | Yes | Human-readable description of what is being tested | |
| expected_text | No | Expected text content of the element (optional, used with selector) |