browser_save_image
Converts base64 screenshot data into a PNG file. Specify an output path or use automatic naming for saved images.
Instructions
Save base64 screenshot data to PNG file.
Args: screenshot_json_str_or_file: JSON output from browser_screenshot tool, or path to a JSON file containing the screenshot data. output_path: Output PNG file path or directory. Behavior: - Existing directory: save as {directory}/screenshot_{timestamp}.png - File path with existing parent dir: save directly to that file - File path with non-existing parent dir: return error - Empty/not provided: auto-generate based on input path or timestamp
Returns: JSON with status, saved_path, and size_bytes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_path | No | ||
| screenshot_json_str_or_file | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |