Set Shape Data
visio_set_shape_dataUpdate or create a Shape Data field on a Visio shape by specifying its ID, name, value, and optional label, page, or document.
Instructions
Set a Shape Data field on a shape, creating the row if it is missing.
Args: shape_id: Id from visio_list_shapes. name: Row name, as shown in visio_get_shape's shape_data keys. Letters, digits and underscores only. value: Value to store. label: Display label shown in Visio's Shape Data window. page: Page name or 1-based index. Omit for the page on screen. document: File name or 1-based index. Omit for the active document.
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": {
"shape_id": "<shape_id>",
"name": "<name>",
"value": "<value>"
},
"name": "visio_set_shape_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| page | No | ||
| label | No | ||
| value | Yes | ||
| document | No | ||
| shape_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| page | No | ||
| action | Yes | ||
| detail | Yes | ||
| affected | No | ||
| document | No | ||
| shape_id | No |