answer_console_popup
Answer a console pop-up flagged as pending_popup by selecting an option number to clear the blocking dialog, with cancel or destructive confirmation when required.
Instructions
Answer a console pop-up a previous tool reported as pending_popup.
Pass the option number from pending_popup.options. Choosing the Cancel
option is always allowed (give its number as cancel_option); any other
answer can confirm an overwrite or delete and needs confirm_destructive=True.
Args:
choice: Option number to press (e.g. 1 for "Ok").
cancel_option: The pop-up's Cancel option number, when known.
confirm_destructive: Required for any answer other than Cancel.
Returns:
str: JSON with command_sent and raw_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": {
"choice": "<choice>"
},
"name": "answer_console_popup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| choice | Yes | ||
| cancel_option | No | ||
| confirm_destructive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |