Create a table
create_tableCreate a table on a Google Slide with the specified rows and columns. Get the table object ID in the reply to fill cells with text or adjust table properties later.
Instructions
Creates an empty rows x columns table on a slide (batchUpdate createTable) and returns its objectId in the reply. Fill cells with set_text / insert_text using row_index + column_index (0-based); restructure later with edit_table. Position/size are in points; omitted geometry lets the API pick a centered default. Cell styling (borders, background) goes through batch_update updateTableCellProperties.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | Row count (the API allows at most 20 rows at creation). | |
| x_pt | No | Left edge in points (requires y_pt). | |
| y_pt | No | Top edge in points (requires x_pt). | |
| columns | Yes | Column count (the API allows at most 20 columns at creation). | |
| width_pt | No | Width in points (requires height_pt). | |
| height_pt | No | Height in points (requires width_pt). | |
| object_id | No | Optional custom object id for the new table. | |
| page_object_id | Yes | The slide's object id to place the table 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. |