capture_screenshot
Capture screenshots of Tauri application windows for testing and automation. Saves images to files or returns base64-encoded PNG data to verify UI elements and document application behavior.
Instructions
Capture a screenshot of the application window. Returns base64-encoded PNG image data by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Optional filename (without extension) to save the screenshot. If not provided, a timestamp will be used. | |
| returnBase64 | No | Whether to return base64 image data (true) or save to file and return path (false). Default: true |
Input Schema (JSON Schema)
{
"properties": {
"filename": {
"description": "Optional filename (without extension) to save the screenshot. If not provided, a timestamp will be used.",
"type": "string"
},
"returnBase64": {
"default": true,
"description": "Whether to return base64 image data (true) or save to file and return path (false). Default: true",
"type": "boolean"
}
},
"type": "object"
}