open_image_with_system
Opens image URLs directly in your system's default application. Use this tool to view images generated by the MCP Server Replicate without downloading them first.
Instructions
Open an image URL with the system's default application.
Args:
image_url: URL of the image to open
Returns:
Dict containing status of the operation
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_url | Yes |
Implementation Reference
- The handler function that implements the 'open_image_with_system' tool by opening the provided image URL using the system's default web browser.async def open_image_with_system(image_url: str) -> dict[str, Any]: """Open an image URL with the system's default application. Args: image_url: URL of the image to open Returns: Dict containing status of the operation """ try: # Open URL directly with system default webbrowser.open(image_url) return {"status": "success", "message": "Image opened with system default application", "url": image_url} except Exception as e: logger.error(f"Failed to open image: {str(e)}") return {"status": "error", "message": f"Failed to open image: {str(e)}", "url": image_url}