ingest_slide_edit
Validate, save, render, and lint an add or update slide specification for a presentation project before exporting it to HTML.
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, returned edit_context, 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. edit_context: Opaque token returned by prepare_slide_edit. 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>).
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": {
"project_id": "<project_id>",
"action": "<action>",
"slide_index": "<slide_index>",
"spec_json": "<spec_json>",
"edit_context": "<edit_context>"
},
"name": "ingest_slide_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| spec_json | Yes | ||
| project_id | Yes | ||
| color_theme | No | dark | |
| slide_index | Yes | ||
| edit_context | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |