card_builder_upload_svg
Upload an SVG created during the session to the Card Builder media library. Get back a media reference to use in block-image components.
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 |
|---|---|---|---|
| path | No | ||
| filename | Yes | ||
| svg_content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||