set_shape_text
Set or replace the text label of a shape in Visio by providing its ID and new text. Optionally specify a page index to target a shape on a different page.
Instructions
Set or replace the text label of a shape.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | New text content. | |
| shapeId | Yes | Shape ID, e.g. "Sheet.5". | |
| pageIndex | No | 0-based page index. Default: first page. |