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.
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": {
"type": "<type>",
"x": "<x>",
"y": "<y>"
},
"name": "add_shape"
}
}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. |