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.
A presentation (made with artifacts.create(slides=...)): pass slides to replace all of them, replace_slides to change some by id ({id, html?, notes?, class?}; read the ids with artifacts.get(include_html=true)), and/or deck_css to change the shared CSS. Passing html turns it into an ordinary page.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"artifact_id": "<artifact_id>"
},
"name": "artifacts_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | The new full self-contained HTML page (same contract as artifacts.create). Omit when passing analytics_card_ids. | |
| label | No | Optional human name for this version (e.g. 'Q3 final'). | |
| slides | No | Replace every slide of a presentation: a list of {html, id?, notes?, class?} (same contract as artifacts.create). Keeps the deck CSS unless deck_css is passed. | |
| deck_css | No | A presentation's new shared CSS (alone, or with slides / replace_slides). | |
| 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. | |
| replace_slides | No | Change some slides of a presentation by id: [{id, html?, notes?, class?}]. Other slides stay as they are. | |
| analytics_card_ids | No | Ids of saved analytics dashboard cards to make this artifact's source, keeping its link: the cards are attached and the page is rebuilt from them now; afterwards artifacts.refresh(artifact_id) alone rebuilds it again. Mutually exclusive with html. |