browserHandleDialog
Handle browser dialogs by accepting or prompting responses, specifying wait times, and automating web interactions efficiently using the Better Playwright MCP server.
Instructions
处理浏览器对话框
Input Schema
Name | Required | Description | Default |
---|---|---|---|
accept | Yes | 是否接受对话框 | |
pageId | Yes | 页面ID | |
promptText | No | 提示对话框的回答文本 | |
waitForTimeout | No | 操作后等待获取快照的延迟时间(毫秒,默认2000) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"accept": {
"description": "是否接受对话框",
"type": "boolean"
},
"pageId": {
"description": "页面ID",
"type": "string"
},
"promptText": {
"description": "提示对话框的回答文本",
"type": "string"
},
"waitForTimeout": {
"description": "操作后等待获取快照的延迟时间(毫秒,默认2000)",
"type": "number"
}
},
"required": [
"pageId",
"accept"
],
"type": "object"
}