Create a shape
create_shapeAdd a shape to a Google Slide with optional initial text, specifying shape type, position, and size in points.
Instructions
Creates a shape on a slide (batchUpdate createShape), optionally with its initial text in the same atomic batch. Types: text_box, rectangle, round_rectangle, ellipse, diamond, triangle, right_arrow, left_arrow, up_arrow, down_arrow, star, heart, cloud, callout — the API's other ~130 ShapeTypes go through batch_update. Position/size are in points ((0,0) is top-left; a default 16:9 slide is 720x405 pt); omitted geometry defaults to 300x80 pt at (50,50). Returns the shape's objectId in the reply. Fill/outline/shadow are not parameters here — style via batch_update updateShapeProperties; text styling via update_text_style.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Initial text, inserted in the same atomic batch. | |
| x_pt | No | Left edge in points (requires y_pt; default 50). | |
| y_pt | No | Top edge in points (requires x_pt; default 50). | |
| width_pt | No | Width in points (requires height_pt; default 300). | |
| height_pt | No | Height in points (requires width_pt; default 80). | |
| object_id | No | Optional custom object id (5-50 chars of [a-zA-Z0-9_-:]); auto-generated when omitted. | |
| shape_type | Yes | The shape type. | |
| page_object_id | Yes | The slide's object id to place the shape on (from list_slides). | |
| presentation_id | Yes | The presentation id — the long id from the URL (docs.google.com/presentation/d/<presentationId>/edit) or from create_presentation output. |