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.
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": {
"shapeId": "<shapeId>",
"text": "<text>"
},
"name": "set_shape_text"
}
}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. |