dialog
Configure how JavaScript alerts, confirms, and prompts are handled before an action triggers them; choose accept or dismiss and supply prompt text when needed.
Instructions
[Agent Browser] Set up handler for JavaScript dialogs (alert, confirm, prompt). Call BEFORE the action that triggers the dialog. Actions: 'accept' or 'dismiss'. For window.prompt(), provide prompt_text to enter a response.
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": {
"action": "<action>"
},
"name": "dialog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| prompt_text | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| hints | No | ||
| message | No | ||
| success | No | ||
| suggestions | No |