Sap Get Screen Info
sap_get_screen_infoRetrieves technical details of the current SAP screen, including session context, to help agents inspect UI state before navigating or entering data.
Instructions
Get technical information about the current SAP screen
Session parameter:
session=None (default): Uses primary session ("s1")
session="s2": Targets specific session (for parallel agents)
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_screen_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | No | Session ID (e.g., "s1", "s2"). None uses primary session. | |
| agent_id | No | Agent identifier for binding check. Optional. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Current URL | |
| user | No | Logged-in SAP user | |
| error | No | Error message if success=False | |
| popup | No | Present when a popup dialog is active on screen | |
| title | Yes | Window/page title | |
| client | No | SAP client number (e.g., '100') | |
| dynpro | No | Screen number | |
| program | No | ABAP program name | |
| success | No | Whether the operation succeeded | |
| system_name | No | SAP system ID (e.g., 'DEV', 'PRD') | |
| transaction | No | Current transaction code | |
| active_window | No | Which window was operated on (e.g., 'wnd[0]', 'wnd[1]'). If 'wnd[1]' or higher, a modal dialog is open. |