pptx_read_slide
Extract slide title, layout, and shape details from a PowerPoint file by specifying the file path and slide index.
Instructions
Return the slide's title, layout, and shape list.
Args:
path: Path to an existing .pptx.
index: 0-based slide index.
folder: Optional base folder for relative paths.
Returns:
{"index": <int>, "layout": <str>, "title": <str>, "shapes": [<shape_dict>, ...]}.
Each ``shape_dict`` has ``type`` (shape class name),
``shape_type`` (the numeric ``MSO_SHAPE_TYPE`` or ``None``),
``name`` (auto-generated name), and ``text`` (text-frame
text, or ``""`` for shape types without text).Raises:
OfficeMCPError: ERR_INVALID_PARAMS for a non-int or
out-of-range index, ERR_FILE_NOT_FOUND if the
file is missing, ERR_UNSUPPORTED_FMT for non-.pptx
extensions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| index | Yes | ||
| folder | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||