sap_handle_popup
Read SAP GUI popup dialogs and respond by confirming, canceling, or pressing specific buttons to automate dialog handling.
Instructions
Read and optionally act on the current popup/modal dialog.
Use when active_window shows wnd[1] or higher. Combines popup inspection and response in a single call.
Actions:
read: return popup content without acting (default)
confirm: press OK/Yes/Continue/Enter on the popup
cancel: press Cancel/No/F12 on the popup
press: press a specific button by its text or tooltip
auto: take only a clearly safe action; otherwise return the popup read-only
Returns the popup contents plus classification, requested action, and post-action screen/popup state when something was pressed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | read | |
| button_text | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||