Sap Get Popup Window
sap_get_popup_windowDetects whether a SAP GUI popup or modal dialog is open and returns its title, text, and available buttons, then classifies it and suggests a safe next action.
Instructions
Check if a popup/modal dialog is open (wnd[1], wnd[2], etc.).
Returns the popup's title, text content, and available buttons so you know how to respond. Also classifies the popup and suggests a safe next action. Returns {popup_exists: false} if no popup.
The popup's text is in texts: labels and display-only fields (a
message popup's lines). A popup whose body is a classic list (an F4
hit list, a note, a message's long text) has list (cells, rows,
hint) instead: its lines are never in texts or
interactive_elements; read them with sap_read_list. Radio buttons
and checkboxes in interactive_elements carry selected. texts,
buttons and interactive_elements are left out when empty.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sap_get_popup_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||