Advanced Features•5 min read
Media Library
Upload and manage images to provide visual context for AI code generation - from UI mockups to error screenshots.
Media Library
The Media Library stores images you can attach to Work Items as visual context. This guide covers uploading, managing, and using images to improve AI code generation.
What Is the Media Library?
The Media Library is a collection of images associated with your project. When you attach images to a Work Item, AI analyzes them to understand:
- UI designs and mockups
- Error screenshots and bug reports
- Architecture diagrams
- Visual references and examples
Images help AI understand visual requirements that are difficult to describe in text.
Accessing the Media Library
Click Media in the sidebar to open the Media Library.
The library displays all uploaded images as a grid of thumbnails. Click an image to view it in full size.
Supported Formats
The Media Library accepts these image formats:
- PNG - Best for screenshots and UI mockups
- JPG/JPEG - Good for photos and complex images
- GIF - Supports simple animations
- WebP - Modern format with good compression
Note: Video and audio files are not supported in the Media Library.
Uploading Images
Upload via Button
- Click Upload in the Media Library
- Select one or more images from your computer
- Images upload and appear in the library
Drag and Drop
- Drag image files from your file explorer
- Drop them onto the Media Library area
- Images upload automatically
From Work Item Context Panel
- Open a Work Item
- Expand the Media section in the Context Panel
- Click Upload to add images directly
Use Cases
UI Mockups and Wireframes
Upload design files to help AI understand the visual goal:
- Upload your mockup image
- Create a Work Item describing the component
- Attach the mockup in the Context Panel
- AI generates code matching the design
Example prompt with mockup:
Create a React component matching the attached mockup.
Include the header with logo, navigation menu, and hero
section with the call-to-action button.
Error Screenshots
Share visual error context:
- Capture a screenshot of the error
- Upload to the Media Library
- Attach to your Work Item
- Describe the expected behavior
Example prompt with error screenshot:
Fix the layout bug shown in the attached screenshot.
The sidebar should align with the header, not overlap it.
Architecture Diagrams
Reference system designs:
- Upload your architecture diagram
- Ask AI to implement components shown in the diagram
- AI understands relationships between services
Example prompt with diagram:
Implement the authentication service shown in the attached
architecture diagram. Include the connection to the user
database and token generation service.
Design References
Show existing patterns to match:
- Screenshot an existing component or page
- Upload as reference
- Ask AI to create similar elements
Example prompt with reference:
Create a notification dropdown matching the style shown
in the attached reference. Use the same colors and spacing.
Managing Images
Viewing Images
Click any thumbnail to open the full-size preview. Press Escape or click outside to close.
Deleting Images
- Select the image you want to remove
- Click the Delete button
- Confirm deletion
Warning: Deleted images cannot be recovered. Work Items that referenced the image will no longer display it.
Image Information
Hover over an image to see:
- File name
- Upload date
- File size
- Dimensions
Using Images in Work Items
From the Context Panel
- Open or create a Work Item
- Expand the Media section in the Context Panel
- Check the images you want to include
- Submit your prompt
Selected images upload to the AI context when you generate code.
Attaching to Messages
- Click the image icon in the Chat Panel input
- Select images from the Media Library
- Images attach to your message
- Submit the message with attached images
Multiple Images
You can attach multiple images to a single Work Item. Use multiple images when:
- Showing different states (before/after, error/success)
- Providing multiple design references
- Demonstrating a multi-step process
Best Practices
Use Clear, High-Quality Images
- Capture full screenshots, not partial clips
- Ensure text is readable
- Use appropriate resolution (not too large, not too small)
Annotate When Helpful
Before uploading, annotate images to highlight:
- Specific areas of interest
- Problem locations
- Important UI elements
Use simple annotations like arrows, circles, or boxes.
Provide Context in Your Prompt
Images work best with explanatory text:
With context:
Create a card component matching the attached mockup.
Note the rounded corners, shadow, and padding.
Without context (less effective):
Make this component.
Keep the Library Organized
Delete unused images periodically. A cluttered Media Library makes finding images difficult.
Limitations
File Size
Large images may slow upload and processing. Resize extremely large images before uploading.
Complex Diagrams
AI interprets images but may miss fine details. For complex diagrams, describe key elements in your prompt.
Dynamic Content
Screenshots show static state. For dynamic behavior, describe interactions in text:
Create the dropdown shown in the mockup. When the user
hovers over a menu item, it should highlight in blue.
Troubleshooting
Image Not Uploading
- Check your internet connection
- Verify the file format is supported
- Try a smaller file size
AI Misinterprets Image
- Add detailed text description
- Annotate the image to highlight important areas
- Use clearer, higher-quality screenshots
Cannot Find Image
- Check if you're in the correct project
- Use search/filter if available
- Verify the image wasn't deleted
What's Next?
- Work Items Workflow - Use images in generation
- Meetings - Add meeting context
- Knowledge Base - Combine with documentation