Agents > Agent context
Images as Context
# Images as Context Attach screenshots, diagrams, or other images directly to agent prompts so the agent can use visual context when generating responses. Warp supports drag-and-drop, copy-paste, and file upload in local and cloud conversations. ## **Attaching images as context** To provide visual context, you can attach images directly to an agent prompt. This is useful for including screenshots, diagrams, or other visual references alongside your query. You can attach images in the following ways: * Select the **image upload button** in the agent input. * Copy and paste images directly (e.g. right-click an image > "Copy image" or copy from a file manager) into Warp. * Drag and drop images, such as from a file manager or screenshot utility. :::note Warp accepts the following image formats: `.jpg`, `.jpeg`, `.png`, `.gif`, and `.webp`. ::: ## Images in cloud conversations In an interactive cloud conversation, attach an image with the file button in the input footer, paste an image from your clipboard, or drag and drop an image into the input. Legacy `oz agent run-cloud --attach` task creation uses separate file-attachment limits. See [running agents remotely](/agents/cli/oz-cli/#running-agents-remotely-oz-agent-run-cloud) for those limits. ### Model behavior and image handling All supported models listed in [Model Choice](/agents/inference/model-choice/) can interpret image input. Attaching images will consume additional requests, proportional to the number of images added. To stay within model limits, Warp will intelligently resize images before passing them as context, minimizing token usage and respecting the model's maximum image dimensions.Tell me about this feature: https://docs.warp.dev/agents/local-agents/agent-context/images-as-context/Attach screenshots, diagrams, or other images to your prompt so Warp’s Agent can use visual context when generating responses.
Attach screenshots, diagrams, or other images directly to agent prompts so the agent can use visual context when generating responses. Warp supports drag-and-drop, copy-paste, and file upload in local and cloud conversations.
Attaching images as context
Section titled “Attaching images as context”To provide visual context, you can attach images directly to an agent prompt. This is useful for including screenshots, diagrams, or other visual references alongside your query.
You can attach images in the following ways:
- Select the image upload button in the agent input.
- Copy and paste images directly (e.g. right-click an image > “Copy image” or copy from a file manager) into Warp.
- Drag and drop images, such as from a file manager or screenshot utility.
Images in cloud conversations
Section titled “Images in cloud conversations”In an interactive cloud conversation, attach an image with the file button in the input footer, paste an image from your clipboard, or drag and drop an image into the input.
Legacy oz agent run-cloud --attach task creation uses separate file-attachment limits. See running agents remotely for those limits.
Model behavior and image handling
Section titled “Model behavior and image handling”All supported models listed in Model Choice can interpret image input.
Attaching images will consume additional requests, proportional to the number of images added. To stay within model limits, Warp will intelligently resize images before passing them as context, minimizing token usage and respecting the model’s maximum image dimensions.