ie_screenshot
Capture PNG screenshots of IE-mode pages, elements, or windows, including modal dialogs, and save them to a session folder.
Instructions
Capture PNG screenshots. scope=page (default) is the driver's view of the page; scope=element (by/value, the default when value is given) one element; scope=window renders the session's windows as the user sees them with PrintWindow: first the main window (or the attached tab's browser window), then every open modal HTML dialog and script alert/confirm/prompt, bottom-most to top-most, one image each, plus a text item that lists them (a system dialog is listed, never captured; a minimized window is reported, not restored). Window shots need no driver, so they work while a dialog blocks the page; target=hwnd: (from ie_windows) captures that one window of this session only. A window IE paints itself can come out blank: say so rather than guess. save_path, a bare file name, also saves it in the session's screenshots folder (several images: name, name-2, name-3, ...); saved files are kept after ie_close.
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": "ie_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | element locator type (for element screenshot) | |
| frame | No | ||
| scope | No | page, element or window (default: window with a target, element with value, else page) | |
| value | No | element locator value (for element screenshot) | |
| target | No | scope=window only: hwnd:<n>, one window of this session (from ie_windows or a NOTICE); no other form is accepted | |
| timeout | No | seconds to wait for the element (default 10) | |
| no_inline | No | return confirmation text instead of the image blob | |
| save_path | No | bare file name, e.g. shot.png; omit it to not save (an empty string is an error) |