browser_assert
Assert conditions on a page: check URL, title, element presence, or text content with CSS selectors.
Instructions
Assert a condition is true on the page. Returns {ok, got}. Kinds: url-contains, url-equals, title-contains, element-exists, element-missing, text-contains, text-equals (text kinds need a target selector; element kinds too).
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": {
"kind": "<kind>"
},
"name": "browser_assert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| target | No | CSS selector for element/text kinds | |
| value | No | Expected value (URL fragment, text, etc.) | |
| intent | No | Optional human description for the trace/workflow. | |
| tabId | No |