artifacts_update
Republish an existing artifact with new HTML. The slug and URL stay the SAME; a new version is stored (older versions are retained up to a cap). Use this to refresh a shared dashboard — anyone with the link sees the new snapshot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | The new full self-contained HTML page (same contract as artifacts.create). | |
| label | No | Optional human name for this version (e.g. 'Q3 final'). | |
| template | No | Optional: attach/replace the data-driven template (HTML with {{placeholder}} tokens) on this existing artifact, so later artifacts.refresh(data={...}) can re-render it server-side. Pass the html rendered from this template. Omit to leave the template unchanged. | |
| artifact_id | Yes | The artifact to republish. | |
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. |