ui_check
ui_checkEvaluate a JavaScript expression against the current page to record an observation without failing the test session when it is false. Execution errors or missing pages still cause hard failures.
Instructions
Check a JS expression against the current page WITHOUT failing the session if it is false. Use this for observations you want recorded in the report but which should not condemn the run. If the expression cannot run at all (no page open, or it throws) that is still a hard failure.
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": {
"condition": "<condition>"
},
"name": "ui_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| condition | Yes | JS expression evaluated in the page context | |
| session_id | No | Which open session to act on, as returned by ui_start_session. Optional with one open session; required when several are open. |