Skip to main content
prompt GP ChatGPT

table · genspark-ai, ops — Claude Code prompt: what it does, how to install

table is a Claude Code prompt for editing existing slide tables, from cell text and merges to sizing and styles. Invoke it to change a table in a presentation.

Apache-2.0 ★ 12,746 updated 2026-10-29

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/table.md
Open on GitHub

What table does

table edits an existing table on a slide. It can replace cell text, merge or split cells, insert or remove rows and columns, set row heights and column widths, align cell text vertically, and apply table styles.

Each operation targets a slide and the ID of an element whose type is table; row and column indexes start at zero. Tables with merged cells reject row or column changes until those merges are split. Cell text takes an array of paragraphs, not a plain string.

What it helps with

  • replace text in a selected table cell
  • merge cells or split them back into the grid
  • insert or remove a row or column
  • adjust row heights and column widths
  • change table styles and borders

Example prompts for the agent

  • Change the text in a table cell on the first slide.
  • Merge the cell at row 0 with the cell to its right.
  • Insert a row after row 1 and apply the zebraBlue style.

How to install table

Manually: put the files in place

.claude/commands/table.md

Questions about table

How do I install table in Claude Code?

Place the prompt file at .claude/commands/table.md in the Claude Code project.

What does table do?

It edits existing slide tables, including their cell content, structure, dimensions, and styling.

Why might table refuse to change rows or columns?

Row and column edits are blocked while the table contains merged cells. Split those cells first with tableMerge and kind:"split".

Source text

table.md · Apache-2.0
# Table ops

> Edit an existing table element: cell text, merges, row/column structure, row heights, column widths, cell anchors, style presets and borders.

All ops take `target:{slide, el}` where `el` is the table's id (type `table` in
the outline). `row` and `col` are 0-based. Chart edits (`setChart`) live in the
`edit_chart` tool.

### setTableCell

`{row,col,paragraphs}`

Replaces one cell's text. Runs you do not restyle inherit the cell's current
formatting, so plain `{text}` runs keep size, color and bold.

| Field      | Type                                                                                            | Notes                   |
| ---------- | ----------------------------------------------------------------------------------------------- | ----------------------- |
| row, col   | integer                                                                                         | 0-based                 |
| paragraphs | array of `{runs:[{text, bold?, italic?, fontSize?, color?}], align?, bullet?, lineSpacingPct?}` | Same shape as `setText` |

```json
{
  "op": "setTableCell",
  "target": { "slide": 0, "el": "e_TABLE" },
  "row": 0,
  "col": 0,
  "paragraphs": [{ "runs": [{ "text": "Metric", "bold": true }], "align": "center" }]
}
```

Common mistakes

- Passing the cell text as a string: it must be a paragraph array.
- Row or column outside the grid: the op reports the failing (row, col).

### tableMerge

`{kind:"merge-right"|"merge-down"|"split",row,col}`

Merges the cell at (row, col) with its right or lower neighbor, or splits a
merged cell back into its grid cells.

```json
{
  "op": "tableMerge",
  "target": { "slide": 0, "el": "e_TABLE" },
  "kind": "merge-right",
  "row": 0,
  "col": 0
}
```

Common mistakes

- Merging across an existing merge boundary: the op refuses; split first.

### tableStructure

`{kind:"insert-row"|"delete-row"|"insert-col"|"delete-col",index,before?}`

Inserts or deletes a row or column. Insert goes after `index` unless
`before:true`.

```json
{
  "op": "tableStructure",
  "target": { "slide": 0, "el": "e_TABLE" },
  "kind": "insert-row",
  "index": 1
}
```

```json
{
  "op": "tableStructure",
  "target": { "slide": 0, "el": "e_TABLE" },
  "kind": "delete-col",
  "index": 0
}
```

Common mistakes

- Tables with merged cells refuse row/column surgery: split the merges first (`tableMerge` with `kind:"split"`).

### setTableRowHeight

`{row,hEmu}`

Sets one row's height in EMU (the table frame grows or shrinks accordingly).

```json
{ "op": "setTableRowHeight", "target": { "slide": 0, "el": "e_TABLE" }, "row": 0, "hEmu": 457200 }
```

### setTableCellAnchor

`{row,col,anchor:"top"|"middle"|"bottom"}`

Vertical alignment of the text inside one cell.

```json
{
  "op": "setTableCellAnchor",
  "target": { "slide": 0, "el": "e_TABLE" },
  "row": 0,
  "col": 1,
  "anchor": "middle"
}
```

### setTableColWidth

`{col,wEmu}`

Sets one column's width in EMU.

```json
{ "op": "setTableColWidth", "target": { "slide": 0, "el": "e_TABLE" }, "col": 0, "wEmu": 2743200 }
```

### setTableStyle

`{styleName} | {styleId?,firstRow?,lastRow?,firstCol?,lastCol?,bandRow?,bandCol?,keepFormatting?,shadingColor?,borderColor?,borderWidthPt?,borderPreset?}`

Restyles the whole table: apply one fixed-color preset by `styleName`, pick one
of PowerPoint's 74 built-in styles by `styleId` (gallery name such as
`"Medium Style 2 - Accent 1"` or its GUID; they follow the deck's theme
colors), or change individual region flags, cell shading and border lines. A
preset wins over the other fields; a preset or `styleId` clears direct cell
fills and borders like PowerPoint's style gallery (`keepFormatting: true`
keeps them). `slides read` shows a table's current `style`.

| Field                               | Type                  | Notes                                                                                                                                                                                                                                          |
| ----------------------------------- | --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| styleName                           | string                | `none`, `lightGrid`, `zebraBlue`, `zebraGray`, `headerDarkBlue`, `headerOrange`, `noBorder`, `fullBorder`                                                                                                                                      |
| styleId                             | string                | Built-in gallery name or `{GUID}`: `No Style, No Grid`, `No Style, Table Grid`, `Themed Style 1/2 - Accent N`, `Light Style 1/2/3 [- Accent N]`, `Medium Style 1/2/3/4 [- Accent N]`, `Dark Style 1 [- Accent N]`, `Dark Style 2 [- Accent N]` |
| firstRow                            | boolean               | Header-row emphasis                                                                                                                                                                                                                            |
| lastRow, firstCol, lastCol, bandCol | boolean               | Total row, first/last column emphasis, banded columns                                                                                                                                                                                          |
| bandRow                             | boolean               | Banded rows                                                                                                                                                                                                                                    |
| keepFormatting                      | boolean               | With `styleId`: keep direct cell fills/borders instead of clearing them                                                                                                                                                                        |
| shadingColor                        | `#RRGGBB` or `"none"` | Cell fill for every cell                                                                                                                                                                                                                       |
| borderColor                         | `#RRGGBB`             | Border line color                                                                                                                                                                                                                              |
| borderWidthPt                       | number (pt)           | Border line width; 0 < pt <= 1584                                                                                                                                                                                                              |
| borderPreset                        | `"all"` or `"none"`   | Draw all border lines, or clear them                                                                                                                                                                                                           |

```json
{ "op": "setTableStyle", "target": { "slide": 0, "el": "e_TABLE" }, "styleName": "zebraBlue" }
```

```json
{
  "op": "setTableStyle",
  "target": { "slide": 0, "el": "e_TABLE" },
  "styleId": "Medium Style 2 - Accent 1",
  "firstRow": true,
  "bandRow": true
}
```

```json
{
  "op": "setTableStyle",
  "target": { "slide": 0, "el": "e_TABLE" },
  "firstRow": true,
  "borderPreset": "all",
  "borderColor": "#BFBFBF",
  "borderWidthPt": 1
}
```

Common mistakes

- Passing a color name (`"blue"`): colors are `#RRGGBB`.
- Mixing `styleName` with the other fields: the preset is applied and the rest is ignored.
- A built-in name in `styleName`: gallery names and GUIDs go in `styleId`.
- Restyling one cell's text: that is `setTableCell` with styled runs, not this op.

### setChart (not-ai-callable)

`{patch:ChartEdit} — use the edit_chart tool instead`

Changes a chart's type, data, colors or elements. The `edit_chart` tool exposes
this with a validated schema.

© genspark-ai · Apache-2.0 · genspark-ai/genoffice

Similar prompts

All prompts for Office documents →

table by other authors comes first.

table genspark-ai Tells the agent when to turn a range into a real Excel table and when to fake the look with plain formatting instead. GP ChatGPT ★ 12,746repo stars ppt-visual claude-office-skills ppt-visual designs slide layouts, typography, and color schemes. Outputs ASCII wireframes and layout specifications for presentation decks. CX Codex +1 12,800installs frontend-slides affaan-m frontend-slides is a Claude Code skill that builds self-contained HTML presentations or converts PowerPoint decks into web slides. Runs during pitch deck and tech talk creation. CX Codex +1 7,300installs elite-powerpoint-designer willem4130 elite-powerpoint-designer — a skill for Claude Code, Codex, Cursor and other agents that builds polished PPTX files from text or markdown. Triggered when the agent receives a request for a pitch, report or slide deck. CX Codex +1 5,500installs ppt-generation bytedance ppt-generation creates PPTX presentations by generating slide visuals and assembling them into PowerPoint decks. Useful when you need a consistent visual deck from a text prompt. CX Codex +1 5,400installs presentation-design jwynia presentation-design — a skill that shapes presentations around the audience: structure, visual clarity, cognitive load. Use it before building a deck or to review existing slides. CX Codex +1 2,800installs nanobanan-ppt podo nanobanan-ppt reads a document, splits it into slides and draws theme-matched images with Gemini. You get slide images and an HTML player, not a .pptx. CX Codex +1 204installs

From the same set65

The whole set →

Project sponsors

Companies that keep this analytics open