ppt_add_table
Add a data table to a chosen slide in a PowerPoint file, specifying dimensions, cell text, position, and size. Optionally back up the original file before editing.
Instructions
Add a table to a specific slide in a PowerPoint presentation.
Args:
file_path: Path to the PowerPoint file (.pptx).
slide_idx: 0-based index of the slide.
rows: Number of table rows.
cols: Number of table columns.
data: Optional 2D list of cell text values.
left: Left offset position in inches (default: 1.0).
top: Top offset position in inches (default: 2.0).
width: Table width in inches (default: 8.0).
height: Table height in inches (default: 4.0).
backup: If True, create a backup of the original file before modifying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| cols | Yes | ||
| data | No | ||
| left | No | ||
| rows | Yes | ||
| width | No | ||
| backup | No | ||
| height | No | ||
| file_path | Yes | ||
| slide_idx | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |