assert_page_contains
Verify that a page contains a specific string, checking either the full page source or only the visible text. Use this to confirm expected content is present.
Instructions
Assert the full page source or visible text contains a string.
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": {
"text": "<text>"
},
"name": "assert_page_contains"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| source_only | No | If true, checks page source; otherwise checks body visible text |