restart_browser
Restart the Playwright browser process to recover from closed or unresponsive browser sessions without restarting the MCP server. After restart, re-authenticate login status before continuing operations.
Instructions
重新初始化 Playwright 浏览器进程,无需重启 MCP 服务器。 当出现以下情况时调用:
浏览器窗口已被手动关闭
页面长时间无响应或报错
提示"浏览器进程已关闭"等异常 重启后需重新调用 login 验证登录状态,再继续执行后续操作。
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": "restart_browser"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |