Create Canvas
create_canvasCreate a JSON Canvas from nodes and optional edges, then save it as a date-prefixed .canvas file.
Instructions
Create a JSON Canvas from nodes (and optional edges) and write it as a date-prefixed .canvas file under OUTPUT_PATH.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodes | Yes | ||
| filename | Yes | ||
| edges | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the written .canvas file | |
| node_count | Yes | Number of nodes written | |
| edge_count | Yes | Number of edges written | |
| canvas | Yes | The full canvas document, for inline UI rendering |