prepare_modify_component
Prepares a generation task for a narrow edit to a specific component on a slide, such as changing its color or text, based on natural language instructions.
Instructions
Prepares a narrow single-component edit on a content slide.
No LLM call. Returns a generation task with stage:
stage="modify": generate the ComponentModify JSON, then callingest_modify_component.stage="backfill"(imported slides with no design_doc): generate the backfill JSON, callingest_backfillto getavailable_components, then callprepare_modify_componentagain with a valid component_id.
Use for narrow changes like "make the LLM box red". For broader changes use
prepare_slide_edit(action="update").
Args: project_id: Target project ID (required). slide_index: 1-based slide position. component_id: Target component id from design_doc.layout leaf. instruction: Natural-language description of the change. color_theme: Color theme ("dark" or "light").
Returns: JSON with system_prompt, user_prompt, response_schema, stage, project_id, slide_index, component_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | ||
| color_theme | No | dark | |
| instruction | Yes | ||
| slide_index | Yes | ||
| component_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |