Sap Lookup Fields
sap_lookup_fieldsLook up pre-discovered CSS field selectors for an SAP transaction in WebGUI. Returns selectors from a static registry so agents can locate and fill fields without rediscovering them.
Instructions
Look up known field CSS selectors for an SAP transaction (WebGUI only). Returns pre-discovered selectors from a static registry. On Desktop, use sap_discover_fields instead — it discovers fields dynamically.
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": {
"transaction": "<transaction>"
},
"name": "sap_lookup_fields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| transaction | Yes | Transaction code (e.g., SE16, VA01, BP) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Error message if success=False | |
| popup | No | Present when a popup dialog is active on screen | |
| fields | No | Field name → selector | |
| success | No | Whether the operation succeeded | |
| transaction | Yes | Transaction code looked up | |
| active_window | No | Which window was operated on (e.g., 'wnd[0]', 'wnd[1]'). If 'wnd[1]' or higher, a modal dialog is open. | |
| similar_transactions | No | Similar tcodes if not found |