closePage
Close a specified browser page by providing its unique pageId. This tool is part of Better Playwright MCP, designed to optimize browser automation and reduce HTML token usage for efficient web interactions.
Instructions
关闭指定的页面
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": {
"pageId": "<pageId>"
},
"name": "closePage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | 页面ID |