Record the SAP session as a test
sap_recordRecords SAP GUI actions as replayable regression tests that sap_replay runs without a model. Start with a name, add steps and assertions, then stop to write the file.
Instructions
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.
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": {
"op": "<op>"
},
"name": "sap_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| op | Yes | ||
| to | No | ||
| from | No | ||
| name | No | the recording's (start, export) or the variable's (variable, capture) | |
| text | No | ||
| tidy | No | code: without detours and corrections, with a log and a TODO list | |
| check | No | ||
| value | No | ||
| equals | No | ||
| matches | No | a regular expression | |
| pattern | No | regular expression; its first group is the value | |
| replace | No | start: record over a recording of the same name | |
| session | No | session from sap_sessions; default: the active one | |
| contains | No | ||
| description | No |