Skip to main content
Glama
sap-ui-automation

sap-ui-automation

by DidroAI

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SAP_WRITENoSet to "confirm" in the server's environment to make Claude Code, VS Code and Codex ask you before each write; otherwise writes are refused and the snippets are read-only.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Works in the SAP screens the user already has open, as that user: SAP GUI for Windows, SAP Web GUI and Fiori in Chrome (transactions such as VA01 or ME23N, ALV grids, popups). It never logs on. Start with sap_look, or directly with sap_act okcode /n when the task names it. Each sap_act answer is the new screen: act again from it. Read the status bar after each call: SAP reports errors there. An action that may write (save, post, delete...) runs only after the user says yes in a dialog the client shows; if they decline, leave the transaction without saving (okcode /n), then ask how to go on. A client that cannot ask the user gets it refused: then tell the user what you would have saved. Type, press, Enter, open a transaction, answer a popup: sap_act ("actions": a whole screen in one call). Several sessions or systems: sap_sessions. Record a flow as a test or to automate it: sap_record, then sap_replay.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
sap_sessionsA

The SAP sessions open (SAP GUI windows; Web GUI and Fiori tabs in Chrome); * marks the active one. Needed only with several sessions, or when a tool says none matches. Parallel work: one session per task and its session on every call; calls on different sessions run at once, calls on one session wait their turn. An okcode /o opens a new session of the same logon. None: ask the user to open SAP and log on; this server never logs on.

sap_useA

Makes another session the active one and answers with its screen. Only to switch between several sessions; every other tool also takes "session" for one call.

sap_lookA

The SAP screen as compact text: header, one line per control (id, type, label = "value", state), tables as rows, popups as WINDOW, status bar last. Call it first, for the ids; after sap_act it is rarely needed (that answer is the new screen). Again only to read more: a grid or list shows the rows on screen and the total, read others with id and rows (200 at most), never conclude an entry is missing from the rows on screen; a dropdown, tree or text whole: id; menus: id "mbar", one menu whole: id "menu[2]"; toolbar buttons and hidden ids: full. Charts: sap_screenshot.

sap_actA

Acts on the SAP screen; answers with the new screen, on the same screen only the changes ("~" changed line, "+" new, "-" gone, "=" unchanged), so sap_look after it is rarely needed. Ids from the latest view; the last part is enough. "STATUS E": the step did not go through, correct the field it names; W: Enter accepts it; S: done (document numbers). A new "WINDOW wnd[1]" is a popup: answer it before anything else. set only types: fill every field, then one Enter (key 0). Codes: f4 on the field lists them. do and its fields: set id, value; a table cell: id (the table), row, col; "\n" breaks lines in a text editor key key: Enter, Back, Execute, Save, Cancel, Exit, F1-F24, Shift+F3, or SAP's number press id (click too); btn[N] is function key N okcode value: "/nVA03" starts a transaction, "/oVA03" in a new session; it submits on its own (no Enter after it); the command field cannot be typed into select id (tab, radio, menu entry, list item); with row: a table row (value false: deselect) check id, value true|false combo id, key (entry key or text; without: lists them) f4, focus, dblclick id grid id, row, col, how double|select|cell tree id, node, how double|select|expand|collapse toolbar id, button scroll id, to: a row from 0, next, prev, first, last, left, right open app "#SalesOrder-manage" (Fiori launchpad) timeout: seconds per step (default 180). actions: [...] up to 20 in one call, a screen's fields then its key: [{"do":"set","id":"ctxtVBAK-AUART","value":"OR"},{"do":"key","key":0}]. Stops at the first surprise (failure, refusal, a write awaiting yes, popup, E/W/A status, another screen unless the next action's id is on it and it does not write; okcode "/n" and open go on into it). Per step: expect {"screen":"4001"}|{"screen":"*"} (any)|{"popup":true}|{"status":"W"} goes on through it; show:true adds the screen after it; unseen:true lets a write run on a screen first reached in the batch. Do not repeat a failed action unchanged. An action that may write (save, post, delete...) runs only after the user says yes in a dialog the client shows; if they decline, leave the transaction without saving (okcode /n), then ask how to go on. A client that cannot ask the user gets it refused: then tell the user what you would have saved.

sap_screenshotA

A PNG of the session's window or tab, only for what sap_look cannot give as text (charts, areas the view marks opaque) or when the user asks for a picture: it costs several text views. Never to find ids.

sap_recordA

Turns what you do with sap_act into a test that sap_replay runs without a model. Use it only when the user asks to record, automate or regression-test a flow. In order: start (name), an okcode that opens the transaction, your sap_act steps, assert after the step it checks, stop (writes the file); code gives the steps as a script. {"op":"help"} lists every op with its fields and examples; a call that lacks a field says which. Typed values are written as typed: do not record secrets.

sap_replayA

Runs a recording (sap_record) again on the active session with no model, under the same write setting and transaction lists as sap_act. Use it to re-run a recorded flow, also on other data with "variables", e.g. {"order":"4711"}. Answers PASS or FAIL per step; a failure gives the screen there and how to go on (from, repair). Stop a recording first.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.3/5.0

Scored across 7 tools

Disambiguation4/5

Each tool has a mostly distinct role: reading the screen, acting on it, switching sessions, capturing images, recording, replaying, and listing sessions. The only mild overlap is sap_use versus sap_sessions, since both concern session management, but their descriptions clarify the boundary.

Naming Consistency4/5

All tools share a predictable sap_ prefix and short action-oriented names. The pattern is not a strict verb_noun form, and sap_sessions is a noun rather than a verb, which is a minor deviation.

Tool Count5/5

Seven tools is well-scoped for an SAP UI automation server. Each tool covers a distinct part of the workflow: inspection, interaction, session handling, screenshots, recording, and replay.

Completeness4/5

The surface covers the core automation lifecycle well: read screen, act, handle sessions, capture visuals, record flows, and replay them. Minor gaps exist around explicit logon/logoff and file or clipboard operations, but the server intentionally leaves logon to the user.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues