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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>",
"slide_idx": "<slide_idx>",
"rows": "<rows>",
"cols": "<cols>"
},
"name": "ppt_add_table"
}
}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 |