onda_window_screenshot
Capture an Onda main window as PNG or JPEG to visually inspect UI layout, confirm rendering, or diagnose glitches. Returns base64 dataUrl or tempfile path.
Instructions
Capture a PNG/JPEG snapshot of an Onda main window for visual debugging. Returns either a base64 dataUrl or a tempfile path. Use this when you (the agent) need to SEE what the user sees — verifying a layout change, confirming a feature renders correctly, or investigating UI glitches. Returns { dataUrl | path, width, height, windowId, capturedAt }. Defaults: focused window, PNG format, dataUrl=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format. PNG is lossless (default), JPEG is smaller. | |
| dataUrl | No | When true (default), returns base64 dataUrl. When false, writes a tempfile and returns its path — useful for large captures. | |
| quality | No | JPEG quality 0..100 (default 80). Ignored for PNG. | |
| windowId | No | Window ID to capture. Omit for the focused window. |