Save the canvas
canvas-saveCommit the canvas: the same as the person's Save, one new version of the artifact, with you named in the commit. It saves everything unsaved in the person's open canvas, the person's own edits included. Save when the task is done or when the person asks; artifact-publish publishes the last commit, so save before publishing. Answers with the commit, the pages written and anything that did not read back after saving.
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": {
"sessionId": "<sessionId>"
},
"name": "canvas-save"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | What the save holds, in a few words (added to the commit message) | |
| sessionId | Yes | The artifact's id (its sessionId), from canvas-get_open or workspace-list_artifacts. |