Image Messages
Prompts can include image content, allowing you to create multi-modal prompt templates that include visual information.
Supported Formats
- PNG (image/png)
- JPEG (image/jpeg)
- GIF (image/gif)
- WebP (image/webp)
Size Limits
- Maximum file size: 100 MB
Uploading Images
There are three ways to add an image to a prompt message:
Click to Upload
- Select "Image" as the content type for a message
- Click the upload zone
- Select an image file from your computer
Drag and Drop
- Select "Image" as the content type
- Drag an image file from your computer
- Drop it on the upload zone
Paste from Clipboard
- Copy an image to your clipboard (screenshot, copied image, etc.)
- Select "Image" as the content type
- Press
Ctrl+V(Windows/Linux) orCmd+V(Mac) - The image will be pasted into the upload zone
How Images are Delivered
When an MCP client requests a prompt with image messages, the images are delivered as base64-encoded data according to the MCP specification:
{
"role": "user",
"content": {
"type": "image",
"data": "base64-encoded-image-data...",
"mimeType": "image/png"
}
}
This ensures compatibility with MCP clients that support multi-modal content.
Storage
Images are stored in secure cloud storage (Google Cloud Storage). When you upload an image:
- The image is validated for type and size
- It's uploaded to a dedicated storage bucket
- A reference is saved with your prompt
- When the prompt is requested, the image is fetched and encoded
Use Cases
Design Review Prompts
Include reference images, mockups, or screenshots for design feedback.
Bug Report Templates
Attach screenshots showing the expected vs actual behavior.
Documentation Prompts
Include diagrams or architectural images that provide context.
Training Prompts
Provide visual examples as part of few-shot learning prompts.
Best Practices
-
Optimize Image Size: While 100 MB is the maximum, smaller images load faster. Consider compressing images when possible.
-
Use Appropriate Formats:
- PNG for screenshots and images with text
- JPEG for photographs
- WebP for best compression
-
Consider Context: Images are base64-encoded when sent to MCP clients, which increases the message size. Use images when they provide significant value.
-
Test with Your Client: Different MCP clients may have varying levels of image support. Test your prompts with your target clients.