exportImageAsset
Retrieve generated images from sessions with base64 data and metadata, optionally saving to disk for local use.
Instructions
Export a generated image asset by session and asset ID.
Returns the image inline as base64 along with metadata (format, dimensions, size).
When running locally (stdio transport), you can optionally provide a destinationPath to save the image to disk.
USAGE: After generating an image with generateImage, use the sessionId and assetId to export: exportImageAsset(sessionId="...", assetId="...")
To save to disk (local/stdio only): exportImageAsset(sessionId="...", assetId="...", destinationPath="/Users/me/project/images/logo.png")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | The session UUID containing the asset | |
| assetId | Yes | The asset UUID to export | |
| destinationPath | No | Optional absolute path to save the image to disk. Only works when the server is running locally (stdio transport). |