import_pptx
Import an external PPTX file and convert it into an editable design spec by extracting shapes, text, images, backgrounds, and speaker notes into a new project.
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, lint, and warnings
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>"
},
"name": "import_pptx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| project_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |