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.
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 |