Add Shape Slide to PowerPoint
office_ppt_add_shapeCreate a PowerPoint file with a single slide containing a specified shape. Supports customizable position, size, colors, rotation, and many shape types.
Instructions
Create a new PowerPoint (.pptx) with one slide containing a shape.
Args:
filePath (string): Path where the presentation will be created
shape (string): Shape type name (e.g. 'rect', 'ellipse', 'triangle', 'star5', 'heart', 'cloud', 'lightningBolt', 'smileyFace', 'chevron', 'pentagon', 'hexagon', 'octagon', 'diamond', 'moon', 'sun', 'pie', 'arc', 'frame', 'cube', 'plus', 'wave', 'funnel', 'bevel', 'donut', 'corner', 'heart', 'plaque', 'ribbon', 'line', etc.)
options (object, optional):
x (number): Left position (inches)
y (number): Top position (inches)
w (number): Width (inches)
h (number): Height (inches)
fillColor (string): Fill color (hex, e.g. "4472C4")
lineColor (string): Line/border color (hex)
lineSize (number): Line width (points)
rotate (number): Rotation (degrees, -360 to 360)
Examples:
Use when: "Draw a red rectangle" or "Create a slide with a blue circle"
Use when: "Add a star shape to the presentation"
Use when: "Create a flowchart shape like a diamond or process box"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path for the new PowerPoint file | |
| shape | Yes | Shape type (e.g. 'rect', 'ellipse', 'triangle', 'star5', 'heart', 'diamond', 'chevron', 'lightningBolt', 'cloud', 'smileyFace', 'moon', 'sun', 'pentagon', 'hexagon', 'octagon', 'pie', 'arc', 'cube', 'plus', 'wave', 'funnel', 'ribbon', 'line', 'bentArrow', 'circularArrow', 'leftArrow', 'rightArrow', 'upArrow', 'downArrow') | |
| options | No | Shape options |