ingest_slide_edit
Validates, saves, renders, and lints a slide spec for adding or updating a slide in a presentation project.
Instructions
Ingests an add/update slide spec: validate, save (insert for add), render, lint.
Call AFTER prepare_slide_edit with the same action/slide_index and your spec JSON.
Args: project_id: Target project ID (required). action: "add" | "update" (same as prepare). slide_index: 1-based position (same as prepare; use the insertion point for add). spec_json: The slide spec JSON generated by the client. color_theme: Color theme ("dark" or "light").
Returns: JSON with design_spec_dir, slide_count, slide_index, slide_html_path, optional lint.
IMPORTANT — Required follow-up: call export_html(project_id=<project_id>).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| spec_json | Yes | ||
| project_id | Yes | ||
| color_theme | No | dark | |
| slide_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |