Style an existing table
set_table_styleEdit Google Docs table styling, including cell padding, background color, and column widths. Fixes text clipping issues by setting appropriate padding and dimensions.
Instructions
Edit style/layout of an existing table (located by any cell’s text): cell padding (pt), background color (hex), and column widths (pt). scope selects which cells padding/background hit — table (default), row, column, or cell (the row/column of the matched cell). Fixes e.g. thin left padding that clips the first letter of cells. A direct edit, not a tracked suggestion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | Target a specific tab by tabId or title (from list_tabs). Defaults to the first tab. | |
| cell | Yes | text of any cell in the target table (locates the table) | |
| scope | No | default table | |
| account | No | Google account email to use. Defaults to GDOCS_DEFAULT_ACCOUNT, or the sole account. | |
| padding | No | cell padding in points | |
| documentId | Yes | ||
| columnWidths | No | set specific column widths (points) by column index | |
| backgroundColor | No | hex, e.g. #f1f3f4 |