create_canvas
Creates a canvas diagram from a structured description of nodes and connections. Returns the rendered PNG and the YAML recipe.
Instructions
Create a canvas diagram from a structured description. Provide a title, nodes, and connections — the tool handles layout and rendering. Returns the path to the rendered PNG and the generated YAML recipe.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodes | Yes | List of nodes to place on the canvas. | |
| scale | No | Render scale factor (default 2.0) | |
| title | Yes | Title for the canvas diagram. | |
| machines | No | Optional: group nodes into machines. Each item is a list of node IDs. | |
| organize | No | Apply the organize algorithm for automatic layout. Default: true. | |
| orientation | No | Layout direction: 'horizontal' (left→right, default) or 'vertical' (top→bottom tree). | horizontal |
| spacing_level | No | Spacing level for organize layout. Default: 'container'. | container |