Overview
Attach images and other files to your prompts for tasks like image analysis, document processing, or any scenario where the model needs to work with external media.Components
ImageAttachment
The<ImageAttachment> component attaches an image to your prompt:
image(required): URL to the image filemimeType(optional): MIME type of the image (e.g.,image/jpeg,image/png)
FileAttachment
The<FileAttachment> component attaches any type of file:
data(required): URL to the filemimeType(required): MIME type of the file (e.g.,application/pdf,text/plain)
Example
A complete prompt using both attachment types:math.prompt.mdx
Have Questions?
We’re here to help! Choose the best way to reach us:
- Email us at hello@agentmark.co for support
- Schedule an Enterprise Demo to learn about our business solutions