canvas
Control a visual workspace by presenting, hiding, navigating, evaluating scripts, capturing snapshots, and resetting state.
Instructions
Control the Canvas visual workspace. Actions: present, hide, navigate, eval, snapshot, a2ui_push, a2ui_reset
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": {
"action": "<action>"
},
"name": "canvas"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL for present/navigate actions | |
| html | No | HTML content for a2ui_push | |
| node | No | Target node ID | |
| action | Yes | Canvas action (present, hide, navigate, eval, snapshot, a2ui_push, a2ui_reset) | |
| format | No | Snapshot format (png, jpeg) | |
| script | No | JavaScript to evaluate | |
| target | No | Target for present action (URL or HTML) | |
| sessionKey | No | OpenClaw session key for routing |