update-shape-item
Modify shape items on a Miro board by updating type, content, position, dimensions, and styling using specific board and item IDs.
Instructions
Update an existing shape item on a Miro board
Input Schema
Name | Required | Description | Default |
---|---|---|---|
boardId | Yes | Unique identifier (ID) of the board that contains the shape | |
data | No | The updated content and configuration of the shape | |
geometry | No | Updated dimensions of the shape | |
itemId | Yes | Unique identifier (ID) of the shape that you want to update | |
position | No | Updated position of the shape on the board | |
style | No | Updated style configuration of the shape |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"boardId": {
"description": "Unique identifier (ID) of the board that contains the shape",
"type": "string"
},
"data": {
"additionalProperties": false,
"description": "The updated content and configuration of the shape",
"properties": {
"content": {
"description": "Updated text content to display inside the shape",
"type": "string"
},
"shape": {
"description": "Updated type of the shape (rectangle, circle, triangle, etc.)",
"type": "string"
}
},
"type": "object"
},
"geometry": {
"additionalProperties": false,
"description": "Updated dimensions of the shape",
"properties": {
"height": {
"description": "Updated height of the shape",
"type": "number"
},
"rotation": {
"description": "Rotation angle of the shape",
"type": "number"
},
"width": {
"description": "Updated width of the shape",
"type": "number"
}
},
"type": "object"
},
"itemId": {
"description": "Unique identifier (ID) of the shape that you want to update",
"type": "string"
},
"position": {
"additionalProperties": false,
"description": "Updated position of the shape on the board",
"properties": {
"x": {
"description": "Updated X coordinate of the shape",
"type": "number"
},
"y": {
"description": "Updated Y coordinate of the shape",
"type": "number"
}
},
"required": [
"x",
"y"
],
"type": "object"
},
"style": {
"additionalProperties": false,
"description": "Updated style configuration of the shape",
"properties": {
"borderColor": {
"description": "Updated color of the shape border (hex format, e.g. #000000)",
"type": "string"
},
"borderOpacity": {
"description": "Updated opacity of the shape border (0-1)",
"type": "number"
},
"borderStyle": {
"description": "Updated style of the shape border (normal, dashed, etc.)",
"type": "string"
},
"borderWidth": {
"description": "Updated width of the shape border",
"type": "number"
},
"color": {
"description": "Updated color of the text in the shape (hex format, e.g. #000000)",
"type": "string"
},
"fillColor": {
"description": "Updated fill color of the shape (hex format, e.g. #000000)",
"type": "string"
},
"fillOpacity": {
"description": "Updated opacity of the shape fill (0-1)",
"type": "number"
}
},
"type": "object"
}
},
"required": [
"boardId",
"itemId"
],
"type": "object"
}