card_builder_upload_svg
Upload a custom SVG to the Card Builder media library by passing the SVG XML and filename. The response includes a media reference for use in block images.
Instructions
Upload an SVG drafted in-session straight to the Card Builder media library.
Intended for AI clients (Claude, Cursor, …) that design the SVG inline
to match the card being built. No preset styles — each background is
crafted for its specific use case. Pass the SVG XML as svg_content
(must start with <svg or <?xml).
Returns {reference, path, url} — the reference is the
cb-media://local/card_builder/<filename> URI you drop into a
block-image's mediaReference prop.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg_content | Yes | ||
| filename | Yes | ||
| path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||