Add canvas artifact RPC foundation for A2UI
This commit is contained in:
@@ -684,6 +684,44 @@ Return gateway protocol version, node policy status, and feature-gate snapshot.
|
||||
|
||||
Return the operator-facing snapshot of registered node locations.
|
||||
|
||||
### Canvas Methods
|
||||
|
||||
#### `canvas.put`
|
||||
|
||||
Upsert a session-scoped canvas artifact.
|
||||
|
||||
**Request:**
|
||||
```json
|
||||
{
|
||||
"id": 12,
|
||||
"method": "canvas.put",
|
||||
"params": {
|
||||
"sessionId": "ws:abc123",
|
||||
"artifactId": "summary-card",
|
||||
"type": "note",
|
||||
"title": "Draft Summary",
|
||||
"content": { "markdown": "## Notes" },
|
||||
"metadata": { "lane": "analysis" }
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
#### `canvas.get`
|
||||
|
||||
Fetch a single artifact by id.
|
||||
|
||||
#### `canvas.list`
|
||||
|
||||
List artifacts for a session (newest first).
|
||||
|
||||
#### `canvas.delete`
|
||||
|
||||
Delete a single artifact.
|
||||
|
||||
#### `canvas.clear`
|
||||
|
||||
Delete all artifacts for a session.
|
||||
|
||||
#### `agent.setToolUseCallback`
|
||||
|
||||
Set callback for tool use events (for confirmation UI).
|
||||
|
||||
Reference in New Issue
Block a user