Save media asset
save_mediaSave generated assets as HTML, SVG, or images to a project's media folder with automatic metadata sidecar for retrieval by list_media.
Instructions
Save a generated asset into a project's media/ folder — a shareable HTML report (or SVG) as UTF-8 text, or an image as base64 (encoding:'base64'). You generate the content; this persists the bytes plus a .meta.json sidecar (title, prompt, tags, linked ticket, generatedAt) that list_media reads back. Name must be a plain filename with an extension, e.g. q3-report.html.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Plain filename with extension, e.g. launch-report.html or chart.png. | |
| tags | No | ||
| group | No | Variation group id — save siblings under one group for side-by-side review (list_variations). | |
| title | No | Human title for the gallery. | |
| prompt | No | The prompt/goal this asset was generated from. | |
| ticket | No | Board ticket this asset relates to, e.g. FBMCPF-39. | |
| content | Yes | Asset contents: UTF-8 text, or base64 when encoding is 'base64'. | |
| project | Yes | ||
| encoding | No | utf8 | |
| brandWords | No | Brand/trial words woven into this asset. If omitted, the project's configured brandWords are recorded automatically. |