Share files and images with rich inline previews using component tags.
<image path="./chart.png" alt="Sales chart" />
Renders an inline image thumbnail. Click to expand. Attributes:
path(required) — relative or absolute path to the image filealt(optional) — description shown as alt text
<file path="./report.pdf" name="Q4 Report" />
Renders a download card with icon, filename, and size. Attributes:
path(required) — relative or absolute path to the filename(optional) — display name (defaults to filename)
- Verify the file exists before referencing it — the UI shows an error for missing files
- Use relative paths from the workspace root (e.g.
./output/chart.png) - Tags must be self-closing (
/>) - Place tags on their own line for best rendering
- Use
<image>for visual content (PNG, JPG, GIF, WebP, SVG) - Use
<file>for downloads (PDF, CSV, ZIP, code files, etc.)
After generating a matplotlib chart:
<image path="./output/chart.png" alt="Revenue by quarter" />
After creating a data export:
<file path="./output/data.csv" name="Exported Data" />
Multiple outputs:
Here are the results:
<image path="./plots/figure1.png" alt="Distribution plot" />
<file path="./results/summary.json" name="Full Results" />