Sap Press Button
sap_press_buttonClicks a pushbutton or toolbar button on the current SAP screen and returns updated screen info so you can detect navigation, popups, or messages after the action.
Instructions
Press (click) a pushbutton or toolbar button on the current SAP screen.
Returns screen info after the press so you can detect navigation or popups. Use sap_get_toolbar_buttons to discover toolbar button IDs. Use sap_get_screen_elements to find on-screen button IDs. When screen info has message_has_long_text, pressing 'wnd[0]/sbar' opens that long text (Diagnosis / Procedure), usually as a list popup: read it with sap_read_list(window_id='wnd[1]').
A popup button is checked like sap_handle_popup's press: a press that may save, or any answer but Cancel to a popup question the tool cannot read, asks the user first (confirmed_by_user: true when accepted).
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": {
"button_id": "<button_id>"
},
"name": "sap_press_button"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| button_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||