Add Table Slide to PowerPoint
office_ppt_add_tableAdd a formatted table to a new PowerPoint slide. Specify headers, rows, and optional styling like font size, border color, and column widths.
Instructions
Create a new PowerPoint (.pptx) with one slide containing a formatted table.
Args:
filePath (string): Path where the presentation will be created
table (object): Table configuration
headers (string[]): Column headers
rows (string[][]): Data rows
options (object, optional):
fontSize (number): Font size
fontFace (string): Font name
borderColor (string): Border color (hex)
colW (number[]): Column widths (inches)
Examples:
Use when: "Create a slide with a sales data table"
Use when: "Make a comparison table slide"
Use when: "Generate a KPI dashboard table slide"
Not for: Simple text slides (use office_create_powerpoint instead)
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": {
"filePath": "<filePath>",
"table": "<table>"
},
"name": "office_ppt_add_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path for the new PowerPoint file | |
| table | Yes |