add_shape
Inserts a specified shape type onto a Visio page at given coordinates in inches, with optional size, label, and styling. Enables diagram creation by placing common IT and flowchart shapes precisely.
Instructions
Add a shape to a Visio page. Coordinates are in inches from the top-left corner.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X position in inches from left edge. | |
| y | Yes | Y position in inches from top edge. | |
| text | No | Text label for the shape. | |
| type | Yes | Shape type. | |
| style | No | ||
| width | No | Width in inches (optional, has sensible default). | |
| height | No | Height in inches (optional, has sensible default). | |
| pageIndex | No | 0-based page index. Default: first page. |