export_chart
Validate a .bpc chart source and generate shareable links with an inline preview to confirm the chart before sharing.
Instructions
Turn a validated .bpc source into shareable URLs plus an inline visual preview of what was published. Returns { copyUrl, embedUrl, urls?, frame } and a scene-0 PNG image block so you can confirm the chart looks right before sharing. copyUrl opens an editable copy in the editor; embedUrl is a read-only iframe target; urls.{png,svg,bpc} (when MCP_PUBLIC_URL is set) are stateless rendered-image/source links. Set modelVisible:false to show the preview to the user only. Requires BLUEPRINT_CHART_EDITOR_URL; preview failures never block the export.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | The .bpc chart source to validate and publish to shareable URLs. | |
| modelVisible | No | When false, the preview image is shown to the user but not sent to the model. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | No | Stateless hosted render URLs (only when MCP_PUBLIC_URL is set). | |
| frame | Yes | Frame metadata extracted from the chart. | |
| copyUrl | Yes | Editor URL that opens an editable copy of the chart. | |
| embedUrl | Yes | Read-only iframe-embeddable URL. | |
| previewOmitted | No | Set when the scene-0 preview render failed. |