When add a svg image to the input in agent mode, the image will be transformed to png format

Where does the bug appear (feature/product)?

Cloud Agent (GitHub, Slack, Web, Linear)

Describe the Bug

when add a svg image to the input in agent mode, the image will be transformed to png format.

Steps to Reproduce

always

Expected Behavior

the image format should be retain as svg

Operating System

MacOS

Version Information

Version: 3.17.21
VS Code Extension API: 1.128.0
Commit: 8f2a112cb2845a97b75fd932ea5c470579ca4060
Date: 2026-08-25T01:05:08.089Z
Layout: Agent Window
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.291
OS: Darwin arm64 25.6.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey @Liu_Dong, thanks for the report!

This one is actually intentional. The AI models behind agent mode can only view raster image formats (like PNG and JPEG), so when you attach an SVG as an image, Cursor converts it to PNG so the model can actually see it. Sending the SVG through unchanged would make the request fail.

If you want the agent to work with the actual SVG source (the XML markup), add the .svg file as a file instead of an image. For example, @-mention the file from your project in the input, or just ask the agent to read the file. That way it gets the full vector source rather than a rasterized preview.