[Canvas] Export preview to PNG/PDF + useCanvasAction exportCanvas

Feature request for product/service

Cursor IDE

Describe the request

Feature request for product/service

Cursor IDE — Canvas (.canvas.tsx)

Describe the request

Canvas is great for agent-generated analytical artifacts (architecture reviews, metrics tables, flow diagrams). Today the source lives at ~/.cursor/projects/<workspace>/canvases/*.canvas.tsx, but there is no way to export the rendered preview (the panel beside chat) to shareable formats.

Requested capabilities (either or both):

A) UI export (highest priority)

  • Right-click (or menu) on the Canvas preview panel:
    • Export as PNG
    • Export as PDF (multi-page if content scrolls)
  • Optional: Copy as PNG to clipboard
  • Save dialog defaults to the canvas file’s directory or Downloads
    Why: Screenshots are lossy and don’t match theme/layout; copying .canvas.tsx is useless for non-developer stakeholders.

B) SDK / programmatic export

Extend useCanvasAction() (from cursor/canvas) with something like:

dispatch({
  type: "exportCanvas",
  format: "png" | "pdf",
  path?: string, // optional; if omitted, show save dialog
});

Very common request we’re exploring! Out of curiousity, what would this bring you that Shared Canvases (a link) don’t?

Probably not everyone who needs to share is in Cursor’s team.