import_pptx
Import a PPTX file and convert it into an editable design spec with automatic HTML preview.
Instructions
Imports an external PPTX file and converts it to a design spec for editing.
Reads the PPTX file, extracts all design elements (shapes, textboxes, images, backgrounds, speaker notes), and creates a new project with the design spec. HTML preview is automatically generated.
After import, you can use prepare_slide_edit / ingest_slide_edit, prepare_modify_component / ingest_modify_component, export_html, export_pptx, and the visual QA tools on the imported project.
Args: file_path: Absolute path to the PPTX file to import project_id: Project ID (auto-generated if not specified)
Returns: JSON string containing project_id, num_slides, slides_html_path, and warnings
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| project_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |