The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
{
"description": "Accept or dismiss a native JS dialog (alert/confirm/prompt) blocking the page.\n\n**Workflow:** when a page is blocked by a native dialog the CDP supervisor captured, call this tool with ``action='accept'`` or ``action='dismiss'``.\n\n**Prompt dialogs:** pass ``prompt_text`` to supply the response string. Ignored for alert/confirm/beforeunload.\n\n**Multiple dialogs:** if more than one dialog is queued (rare — happens when a second dialog fires while the first is still open), pass ``dialog_id`` (the error lists the candidates) to disambiguate.\n\n**Availability:** only present when a CDP endpoint is attached — a local Chromium-family browser via ``/browser connect``, or ``browser.cdp_url`` in config.yaml.",
"name": "browser_dialog",
"parameters": {
"properties": {
"action": {
"description": "'accept' clicks OK / returns the prompt text. 'dismiss' clicks Cancel / returns null from prompt(). For ``beforeunload`` dialogs: 'accept' allows the navigation, 'dismiss' keeps the page.",
"enum": [
"accept",
"dismiss"
],
"type": "string"
},
"dialog_id": {
"description": "Specific dialog to respond to, from the candidate ids a previous call listed. Required only when multiple dialogs are queued.",
"type": "string"
},
"prompt_text": {
"description": "Response string for a ``prompt()`` dialog. Ignored for other dialog types. Defaults to empty string.",
"type": "string"
}
},
"required": [
"action"
],
"type": "object"
}
}