PowerPoint Tables and Charts
ppt_tablesCreate, fill, merge, resize, style, and import PowerPoint tables, plus create, refill, and format native editable charts, with backup and atomic saves.
Instructions
Tables and charts: create, fill, merge, resize, style and import tables, and create, refill and format charts. Table and chart reads are ppt_read. Row and column addresses are 0-based. Every edit backs the file up first and saves atomically. Operations, one per line, as name: what it does:
create_table: Insert a native table at a position in inches, optionally filled from rows of data.
set_table_cells: Write many table cells in one save: text, and per-cell bold, size, color and fill.
merge_cells: Merge a rectangle of cells (0-based, inclusive); text from covered cells moves to the first cell.
unmerge_cells: Split one merged region back into cells; its text stays in the top-left cell.
insert_table_rows: Insert empty rows before a 0-based row (at = row count appends).
delete_table_rows: Delete rows starting at a 0-based row, with their content.
insert_table_cols: Insert empty columns before a 0-based column.
delete_table_cols: Delete columns starting at a 0-based column, with their content.
format_table_cells: Set borders, fill, margins and vertical alignment on a range of cells; text is left alone.
set_column_widths: Set table column widths in inches, for all columns or some.
set_row_heights: Set table row heights in inches; rows still grow to fit their text.
apply_table_style: Apply one of PowerPoint's built-in table styles by name, with its stripe and header options.
import_table: Build or refill a table from a CSV or JSON file.
create_chart: Insert a native, editable chart (bar, column, line, pie, scatter or combo) from categories and series.
update_chart_data: Replace a chart's data in place, keeping its type and styling; the series count must stay the same.
format_chart: Format a chart's titles, legend, number format, gridlines and data labels.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | The operation to run: one of the operations listed in this tool's description. | |
| args | No | The operation's arguments as an object, including file_path unless the operation names other paths or reads no deck; unknown keys are refused. Slides count from 1 in slide_number and from 0 in slide: the user's slide 2 is slide_number 2 or slide 1. ppt_help lists every argument. |