browser_recover
Unfreeze an unresponsive tab by terminating stuck JavaScript, then disable page scripts if it re-spins; re-enable with scripts:true. Reports which recovery step succeeded.
Instructions
Unfreeze a page whose JavaScript is pinned (tools timing out, tab unresponsive). Step 1 terminates the running script (Runtime.terminateExecution); if the page immediately re-spins, step 2 turns the page's own scripts OFF so it can be read, screenshotted and closed (call again with scripts:true to turn them back on). Reports which step worked. If nothing helps, browser_close is bounded and force-kills an owned Chrome.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "browser_recover"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scripts | No | true = re-enable page scripts after a recovery that disabled them; false = disable them outright | |
| sessionId | No |