Sap Connect Existing
sap_connect_existingAttach to an already open SAP GUI session for scripting, optionally targeting a named system. Use when SAP is already logged in and the open session needs automation.
Instructions
Connect to an already open SAP session. Use this when SAP is already logged in.
This is the most common starting point. connection_index=0 and session_index=0 connect to the first open session. Also attaches to SAP Business Client / embedded SAP GUI sessions. Indexes come from sap_list_connections; a connection with scripting_disabled=true cannot be attached.
system: pass it only when the user named the SAP system, as 'DEV' or 'DEV/100' (system/client). One open session on it is attached; several, or none, return an error that lists what is open. The indexes are then ignored.
With the 'attach' confirmation point on, the user picks the session in a
dialog unless system names exactly one open session. The response
says how it was chosen (chosen_by: named, dialog or index).
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_connect_existing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| system | No | ||
| session_index | No | ||
| connection_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||