assert_url
Verifies whether the current browser URL contains a specified substring pattern, returning PASS or FAIL instead of throwing for reliable assertions.
Instructions
[Agent Browser] Check if current URL contains a pattern (substring match). Returns [PASS]/[FAIL] in message - never throws. Use for verification. Returns data.match (bool) and data.url (current URL).
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": {
"pattern": "<pattern>"
},
"name": "assert_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| hints | No | ||
| message | No | ||
| success | No | ||
| suggestions | No |