prepare_slide_edit
Prepares to add or update a slide by updating the outline and returning a generation task with prompts and schema.
Instructions
Prepares to add or update ONE slide — updates the outline, returns a generation task.
No LLM call. For add: shifts files and inserts the new outline. For update:
updates the outline (if title/content_summary given). Returns the slide
generation prompt + response_schema. Generate the slide spec JSON, then
call ingest_slide_edit with the SAME action and slide_index.
For narrow single-element tweaks, use prepare_modify_component instead.
Args: project_id: Target project ID (required). action: "add" | "update". slide_index: 1-based position. add: insertion point (-1 = end). update: target. title: Slide title (required for add; required for update on imported projects). content_summary: Content description (required for add; required for update on imported). component_hint: Layout hint (default: "bullets"). slide_type: "title" | "content" | "closing" | "agenda" (default: "content"). speaker_notes: Optional speaker notes. color_theme: Color theme ("dark" or "light").
Returns: JSON with system_prompt, user_prompt, response_schema, action, project_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| action | Yes | ||
| project_id | Yes | ||
| slide_type | No | content | |
| color_theme | No | dark | |
| slide_index | No | ||
| speaker_notes | No | ||
| component_hint | No | bullets | |
| content_summary | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |