Overview
Attach images and other files to your prompts for tasks like image analysis or document processing.Components
ImageAttachment
The<ImageAttachment> component attaches an image to your prompt:
image(required): URL to the image filemimeType(optional): MIME type of the image (for example,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 (for example,application/pdf,text/plain)
Example
A complete prompt using both attachment types:describe-media.prompt.mdx
Next steps
Attachments render into the prompt’smessages alongside the surrounding text. See the SDK usage section of Running prompts (under the Local tab) to render the prompt with prompt.format() and pass it to your SDK.
Have questions?
Reach out any time:
- Email the team at hello@agentmark.co for support
- Schedule an Enterprise Demo to learn about AgentMark’s business solutions