点击弹窗按钮
antd_modal_clickClicks a button in a visible Ant Design modal (Modal.confirm) by matching button text, with options for exact match and frame targeting.
Instructions
点击当前可见 AntD 弹窗(Modal.confirm / Modal)中的按钮,如"确 定""取 消""确 定删除"。
自动寻找可见的 .ant-modal,在其 footer 或 confirm 区域真实点击匹配按钮。
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": {
"button_text": "<button_text>"
},
"name": "antd_modal_click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exact | No | 是否精确匹配按钮文本 | |
| frame | No | 搜索范围('active'=激活态 iframe) | |
| tab_id | No | 标签页 id,省略时用最新标签页 | |
| timeout | No | 等待弹窗出现的秒数 | |
| button_text | Yes | 按钮文本(默认包含匹配,exact=True 精确匹配) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| message | Yes |