Sap Screenshot
sap_screenshotCaptures the current SAP GUI window as an inline image or full-resolution PNG, providing a visual fallback when structured screen-reading tools return empty or confusing results.
Instructions
Take a screenshot of the current SAP window.
Use as a fallback when structured tools (sap_get_screen_elements, sap_read_field, sap_read_table) return empty or confusing results, e.g., on Web Dynpro screens where the element tree is non-standard.
To put a screenshot into a document, pass save_path (must end in .png, directory must exist, existing files are never overwritten). The file keeps SAP GUI's full resolution; the inline image is capped at 1920px. The response then also reports the absolute path and pixel size. Set inline=False to skip the image when only the file is needed.
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_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inline | No | ||
| save_path | No |