webview_screenshot
Capture screenshots of a Tauri app's webview by specifying window, app identifier, format, and quality. Saves to file or returns base64.
Instructions
[Tauri Apps Only] Screenshot a running Tauri app's webview. Requires active driver_session. Captures only visible viewport. Targets the only connected app, or the default app if multiple are connected. Specify appIdentifier (port or bundle ID) to target a specific app. For browser screenshots, use Chrome DevTools MCP instead. For Electron apps, this will NOT work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| windowId | No | Window label to target (defaults to "main") | |
| appIdentifier | No | App port or bundle ID to target. Defaults to the only connected app or the default app if multiple are connected. | |
| format | No | Image format | jpeg |
| quality | No | JPEG quality (0-100, only for jpeg format) | |
| filePath | No | File path to save the screenshot to instead of returning as base64 | |
| maxWidth | No | Maximum width in pixels. Images wider than this will be scaled down proportionally. Can also be set via TAURI_MCP_SCREENSHOT_MAX_WIDTH environment variable. |