Run browser check
browser_runRun a Playwright script against the preview in the sandbox browser. Bindings: page, context, request, expect, baseUrl, snapshot(), screenshot('label'). Navigate with page.goto(baseUrl) or page.goto('/path'); omit base_url. At most 3 screenshots per call are returned: scroll the target into view and let it settle before each. Prefer expect() for checks. timeout_ms stops the script after that many milliseconds.
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": {
"title": "<title>",
"code": "<code>"
},
"name": "browser_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Async Playwright JS body; screenshot('label') captures stills (max 3 returned). Use baseUrl or relative paths; *.mythex.ai URLs are not reachable from the sandbox. | |
| title | Yes | ||
| base_url | No | ||
| project_id | No | Project id (or use session from use_project) | |
| timeout_ms | No |