Change what the person sees
canvas-viewChange what the person sees in their canvas (never the artifact itself). action picks what, and takes the parameters listed with it:
select [ids required]: Set the selection to these node ids (highlights them for the user).
goto_page [pageId required]: Switch the editor to a page.
zoom_to [target required]: Move the user's camera: a node id, 'selection', or 'fit' (all page content). End a task by showing your work.
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>",
"action": "<action>"
},
"name": "canvas-view"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | select: Node ids | |
| action | Yes | One of: select, goto_page, zoom_to. | |
| pageId | No | goto_page: Page id | |
| target | No | zoom_to: Node id | 'selection' | 'fit' | |
| sessionId | Yes | The artifact's id (its sessionId), from canvas-get_open or workspace-list_artifacts. |