add_rectangle
Add a rectangle shape to Google Slides presentations with customizable position and size, defaulting to 20% of slide dimensions for quick visual element insertion.
Instructions
Add a rectangle to a slide with 20% of slide dimensions
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": {
"presentationId": "<presentationId>",
"slideId": "<slideId>"
},
"name": "add_rectangle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| height | No | Height of the rectangle (optional, defaults to 20% of slide height) | |
| presentationId | Yes | The ID of the Google Slides presentation | |
| slideId | Yes | The ID of the slide to add the rectangle to | |
| width | No | Width of the rectangle (optional, defaults to 20% of slide width) | |
| x | No | X position of the rectangle (optional, defaults to center) | |
| y | No | Y position of the rectangle (optional, defaults to center) |