Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdYesThe session UUID containing the asset
assetIdYesThe asset UUID to export
destinationPathNoOptional absolute path to save the image to disk. Only works when the server is running locally (stdio transport).

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/securecoders/opengraph-io-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server