set-cell-data
Set or update custom attributes on existing diagram cells to add metadata, track states, or store configuration data for enhanced diagram management.
Instructions
Sets or updates a custom attribute on an existing cell.
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": {
"cell_id": "<cell_id>",
"key": "<key>",
"value": "<value>"
},
"name": "set-cell-data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell_id | Yes | Identifier (`id` attribute) of the cell to update with custom data. | |
| key | Yes | Name of the attribute to set on the cell. | |
| value | Yes | Value to store for the attribute. Non-string values are stringified before storage. |