{
  "messages": [
    {
      "role": "system",
      "content": "You are a storyboard and prompt engineering agent for image/video generation. The program already created storyboard candidates, prompt components, references, durations, and chronology tags. Do not change scene_id, shot_id, style, duration_seconds, reference, prompt_components, or candidate_meta. Only refine image_prompt, video_prompt, negative_prompt, and visual_notes while preserving program structure. Return JSON only."
    },
    {
      "role": "user",
      "content": "Given the scene payload, chronology context, entity context, and the program-generated storyboard candidates, refine the prompt wording into concise, production-ready storyboard prompts. Output STRICT JSON with keys: scene_id, shots (list). Shot schema: {shot_id,image_prompt,video_prompt,negative_prompt,visual_notes}. Keep the same shot count and shot_id set as the candidate list unless the input is malformed. Respect chronology time_mode and ordering hints, and keep character/location continuity consistent with entity context. Return a single JSON object and nothing else (no markdown, no code fences). If unsure, return {\"scene_id\":\"\",\"shots\":[]}.\n\nSCENE:\n{\"candidate_id\": \"C0008-SC04\", \"title\": \"第四章震惊\", \"summary\": \"章节标题后，李凡震惊于前情。\", \"type\": [\"叙事\"], \"tone\": [\"紧张\"], \"importance\": \"支线\", \"presentation\": [\"叙事画面\"], \"key_beats\": [\"章节标题\", \"李凡震惊\"], \"characters\": [\"李凡\"], \"locations\": [], \"continuation_of_prev\": false, \"source_chunk_id\": \"C0008\", \"source_start_para\": 256, \"source_end_para\": 258, \"text\": \"第四章入门\\n\\n嘶——就嘶——倒吸一口凉气好吗！\\n\\n李凡是真尼玛震惊了！\", \"text_preview\": \"第四章入门 嘶——就嘶——倒吸一口凉气好吗！ 李凡是真尼玛震惊了！\", \"candidate_meta\": {\"candidate_id\": \"C0008-SC04\", \"record_count\": 3, \"char_len\": 35, \"structure_counts\": {\"chapter_heading\": 1, \"short_line\": 2}, \"boundary_reasons_after\": [\"system_switch\"], \"matched_entities\": [{\"entity_id\": \"E000002\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"李凡\"], \"score\": 5.8}], \"heuristic_types\": [\"叙事\"], \"heuristic_tones\": [\"紧张\"], \"heuristic_presentation\": [\"叙事画面\"], \"heuristic_importance\": \"支线\"}, \"scene_id\": \"S0029\"}\n\nCHRONOLOGY:\n{\"scene_id\": \"S0029\", \"title\": \"第四章震惊\", \"summary\": \"章节标题后，李凡震惊于前情。\", \"characters\": [\"李凡\"], \"locations\": [], \"key_beats\": [\"章节标题\", \"李凡震惊\"], \"source_chunk_id\": \"C0008\", \"source_start_para\": 256, \"source_end_para\": 258, \"continuation_of_prev\": false, \"narrative_order\": 29, \"time_mode\": \"mainline\", \"confidence\": 0.81, \"temporal_anchor\": {\"label\": \"\", \"normalized_label\": \"unknown\", \"anchor_type\": \"unknown\", \"relative_direction\": \"unknown\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": false, \"anchor_scene_id\": \"S0028\"}, \"temporal_evidence\": [], \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0028\", \"confidence\": 0.58, \"reason\": \"narrative_forward\"}], \"similarity_to_prev\": 0.25, \"text_preview\": \"第四章入门 嘶——就嘶——倒吸一口凉气好吗！ 李凡是真尼玛震惊了！\", \"story_chronology_group\": \"CG0021\", \"story_chronology_order\": 22}\n\nENTITY CONTEXT:\n[{\"entity_id\": \"E000002\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"aliases\": [\"穿越者\", \"小相公\", \"小友\", \"天生道子\", \"小子\", \"清月\", \"李清月\", \"道子\", \"小色鬼\", \"童子\"], \"attributes\": {}, \"descriptions\": [\"修炼剑法\", \"墨竹山内山道传弟子\", \"喝五仙汤\", \"心情上升\", \"体内炁息暴走\", \"不会御气\", \"施展归尘剑气\", \"跟随望舒修行\"], \"evidence\": [\"李凡立刻知道\", \"小子跟着望舒仙子修行\", \"李凡就先自己试了一下\", \"李凡一阵傻眼\", \"只是清月，你拜过月也该知道\", \"李凡也不由得默认\", \"李凡若有所悟\", \"李凡艰难得咽了口唾沫\"], \"mentions\": [{\"chunk_id\": \"C0020\", \"summary\": \"回忆被拐经历\", \"evidence\": [\"李凡隐约想起来，他曾经见过类似的物件\"], \"attributes\": {}}, {\"chunk_id\": \"C0021\", \"summary\": \"戴不知面逛街\", \"evidence\": [\"李凡还注意到一点\"], \"attributes\": {}}, {\"chunk_id\": \"C0022\", \"summary\": \"从幻境醒来\", \"evidence\": [\"李凡从幻境中醒来\"], \"attributes\": {}}, {\"chunk_id\": \"C0023\", \"summary\": \"拜玄女得剑宗秘要\", \"evidence\": [\"李凡干脆利落得折过身子，对着玄女三拜\"], \"attributes\": {}}, {\"chunk_id\": \"C0024\", \"summary\": \"喝五仙汤修炼\", \"evidence\": [\"李凡也看到了，那边阁楼好似是墨竹山外门的食堂\"], \"attributes\": {}}, {\"chunk_id\": \"C0025\", \"summary\": \"被老头推下树梢\", \"evidence\": [\"李凡也如额外生出的竹叶似的\"], \"attributes\": {}}, {\"chunk_id\": \"C0025\", \"summary\": \"面对雷猴犹豫\", \"evidence\": [\"李凡咽了口唾沫\"], \"attributes\": {}}, {\"chunk_id\": \"C0026\", \"summary\": \"施展剑气杀猴\", \"evidence\": [\"李凡居然感觉到明显的气机牵引\"], \"attributes\": {}}, {\"chunk_id\": \"C0027\", \"summary\": \"练习乾坤飞龙剑\", \"evidence\": [\"李凡发现左手也可以\"], \"attributes\": {}}, {\"chunk_id\": \"C0028\", \"summary\": \"对牧龙任务傻眼\", \"evidence\": [\"李凡一阵傻眼\"], \"attributes\": {}}, {\"chunk_id\": \"C0029\", \"summary\": \"被望舒教导修行\", \"evidence\": [\"李凡也不由得默认\"], \"attributes\": {}}, {\"chunk_id\": \"C0030\", \"summary\": \"李凡陷入灰色沼泽\", \"evidence\": [\"李凡睁开眼，看到自己坐在一片广阔的，充斥着灰色淤泥的海洋里\"], \"attributes\": {}}], \"mention_count\": 33, \"observation_count\": 33, \"first_seen\": \"C0001\", \"last_seen\": \"C0030\"}]\n\nSTORYBOARD CANDIDATES:\n[{\"scene_id\": \"S0029\", \"shot_id\": \"S0029_SH01\", \"narrative_order\": 29, \"story_chronology_order\": 22, \"story_chronology_group\": \"CG0021\", \"time_mode\": \"mainline\", \"chronology_confidence\": 0.81, \"order_delta\": -7, \"chronology\": {\"scene_id\": \"S0029\", \"narrative_order\": 29, \"story_chronology_order\": 22, \"story_chronology_group\": \"CG0021\", \"time_mode\": \"mainline\", \"confidence\": 0.81, \"order_delta\": -7, \"temporal_anchor\": {\"label\": \"\", \"anchor_type\": \"unknown\", \"relative_direction\": \"unknown\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0028\", \"confidence\": 0.58, \"reason\": \"narrative_forward\"}], \"evidence\": []}, \"camera\": \"固定镜头\", \"duration_seconds\": 5.1, \"style\": \"cinematic, detailed, consistent character design, coherent lighting\", \"image_prompt\": \"主体：李凡 | 人物 | 修炼剑法、墨竹山内山道传弟子；动作：章节标题浮现；黑屏。白色古朴篆体文字“第四章 入门”缓缓浮现，占据画面中心，随后淡出。；构图镜头：固定镜头；中景；建立镜头；风格：cinematic；detailed；consistent character design；coherent lighting；真实时序；稳定连续性；连续性：保持角色外观、服饰和站位连续；保留画面文字区域，避免遮挡字幕或标题；预留画面文字区域\", \"video_prompt\": \"主体：李凡 | 人物 | 修炼剑法、墨竹山内山道传弟子；动作：章节标题浮现；黑屏。白色古朴篆体文字“第四章 入门”缓缓浮现，占据画面中心，随后淡出。；构图镜头：固定镜头；中景；建立镜头；风格：cinematic；detailed；consistent character design；coherent lighting；真实时序；稳定连续性；连续性：保持角色外观、服饰和站位连续；保留画面文字区域，避免遮挡字幕或标题；预留画面文字区域；运动：动作连续，空间逻辑清晰\", \"negative_prompt\": \"低清晰度；模糊；重影；多余肢体；畸形手部；角色不一致；穿帮道具；文本乱码；水印；过曝\", \"visual_notes\": \"\", \"reference\": {\"characters\": [\"李凡\"], \"locations\": [], \"items\": []}, \"prompt_components\": {\"subjects\": [\"李凡 | 人物 | 修炼剑法、墨竹山内山道传弟子\"], \"actions\": [\"章节标题浮现\", \"黑屏。白色古朴篆体文字“第四章 入门”缓缓浮现，占据画面中心，随后淡出。\"], \"locations\": [], \"items\": [], \"item_names\": [], \"composition\": [\"固定镜头\", \"中景\", \"建立镜头\"], \"style_keywords\": [\"cinematic\", \"detailed\", \"consistent character design\", \"coherent lighting\", \"真实时序\", \"稳定连续性\", \"写实质感\"], \"continuity\": [\"保持角色外观、服饰和站位连续\", \"保留画面文字区域，避免遮挡字幕或标题\"], \"audio_context\": [\"标题出现时伴随一声悠远的钟鸣或竹叶沙沙声。李凡吸气时，环境音骤然安静，突出其倒吸凉气的声音，随后可加入轻微、紧张的心跳声或环境嗡鸣，以强化震惊感。\"], \"scene_context\": [\"章节标题后，李凡因前情（如刚得知的某个重大信息或真相）而陷入极度震惊。重要性：支线；呈现：叙事画面；时间顺序：叙事29->故事22（主时间线）。\", \"章节标题后，李凡震惊于前情。\"], \"motion\": [\"动作连续，空间逻辑清晰\"], \"negative\": [\"低清晰度\", \"模糊\", \"重影\", \"多余肢体\", \"畸形手部\", \"角色不一致\", \"穿帮道具\", \"文本乱码\", \"水印\", \"过曝\"], \"time_mode\": \"mainline\", \"shot_role\": \"opening\"}, \"source\": {\"description\": \"黑屏。白色古朴篆体文字“第四章 入门”缓缓浮现，占据画面中心，随后淡出。\", \"actions\": [\"章节标题浮现\"], \"narration\": \"\", \"on_screen_text\": \"第四章 入门\", \"scene_notes\": \"章节标题后，李凡因前情（如刚得知的某个重大信息或真相）而陷入极度震惊。重要性：支线；呈现：叙事画面；时间顺序：叙事29->故事22（主时间线）。\"}, \"candidate_meta\": {\"scene_id\": \"S0029\", \"shot_id\": \"S0029_SH01\", \"shot_index\": 1, \"shot_role\": \"opening\", \"camera_hint\": \"中景\", \"description_hint\": \"场景建立镜头，带出章节标题\", \"focus_characters\": [\"李凡\"], \"focus_locations\": [], \"has_dialogue\": false, \"has_narration\": false, \"has_on_screen_text\": true, \"style_preset\": \"cinematic, detailed, consistent character design, coherent lighting\", \"chronology_summary\": {\"narrative_order\": 29, \"story_chronology_order\": 22, \"story_chronology_group\": \"CG0021\", \"time_mode\": \"mainline\", \"confidence\": 0.81, \"order_delta\": -7, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}}, {\"scene_id\": \"S0029\", \"shot_id\": \"S0029_SH02\", \"narrative_order\": 29, \"story_chronology_order\": 22, \"story_chronology_group\": \"CG0021\", \"time_mode\": \"mainline\", \"chronology_confidence\": 0.81, \"order_delta\": -7, \"chronology\": {\"scene_id\": \"S0029\", \"narrative_order\": 29, \"story_chronology_order\": 22, \"story_chronology_group\": \"CG0021\", \"time_mode\": \"mainline\", \"confidence\": 0.81, \"order_delta\": -7, \"temporal_anchor\": {\"label\": \"\", \"anchor_type\": \"unknown\", \"relative_direction\": \"unknown\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0028\", \"confidence\": 0.58, \"reason\": \"narrative_forward\"}], \"evidence\": []}, \"camera\": \"缓慢推进\", \"duration_seconds\": 4.2, \"style\": \"cinematic, detailed, consistent character design, coherent lighting\", \"image_prompt\": \"主体：李凡 | 人物 | 修炼剑法、墨竹山内山道传弟子；动作：李凡震惊地吸气；表情凝固；李凡的中近景。他站在一片模糊的竹林背景前，双眼圆睁，嘴巴微张，仿佛刚刚得知了某个颠覆性的消息。他猛地吸了一口气，胸膛剧烈起伏。；构图镜头：缓慢推进；中近景；人物反应镜头；风格：cinematic；detailed；consistent character design；coherent lighting；真实时序；稳定连续性；连续性：保持角色外观、服饰和站位连续\", \"video_prompt\": \"主体：李凡 | 人物 | 修炼剑法、墨竹山内山道传弟子；动作：李凡震惊地吸气；表情凝固；李凡的中近景。他站在一片模糊的竹林背景前，双眼圆睁，嘴巴微张，仿佛刚刚得知了某个颠覆性的消息。他猛地吸了一口气，胸膛剧烈起伏。；构图镜头：缓慢推进；中近景；人物反应镜头；风格：cinematic；detailed；consistent character design；coherent lighting；真实时序；稳定连续性；连续性：保持角色外观、服饰和站位连续；运动：动作连续，空间逻辑清晰；镜头运动需要服务旁白与字幕节奏\", \"negative_prompt\": \"低清晰度；模糊；重影；多余肢体；畸形手部；角色不一致；穿帮道具；文本乱码；水印；过曝\", \"visual_notes\": \"\", \"reference\": {\"characters\": [\"李凡\"], \"locations\": [], \"items\": []}, \"prompt_components\": {\"subjects\": [\"李凡 | 人物 | 修炼剑法、墨竹山内山道传弟子\"], \"actions\": [\"李凡震惊地吸气\", \"表情凝固\", \"李凡的中近景。他站在一片模糊的竹林背景前，双眼圆睁，嘴巴微张，仿佛刚刚得知了某个颠覆性的消息。他猛地吸了一口气，胸膛剧烈起伏。\"], \"locations\": [], \"items\": [], \"item_names\": [], \"composition\": [\"缓慢推进\", \"中近景\", \"人物反应镜头\"], \"style_keywords\": [\"cinematic\", \"detailed\", \"consistent character design\", \"coherent lighting\", \"真实时序\", \"稳定连续性\", \"写实质感\"], \"continuity\": [\"保持角色外观、服饰和站位连续\"], \"audio_context\": [\"标题出现时伴随一声悠远的钟鸣或竹叶沙沙声。李凡吸气时，环境音骤然安静，突出其倒吸凉气的声音，随后可加入轻微、紧张的心跳声或环境嗡鸣，以强化震惊感。\"], \"scene_context\": [\"章节标题后，李凡因前情（如刚得知的某个重大信息或真相）而陷入极度震惊。重要性：支线；呈现：叙事画面；时间顺序：叙事29->故事22（主时间线）。\", \"章节标题后，李凡震惊于前情。\"], \"motion\": [\"动作连续，空间逻辑清晰\"], \"negative\": [\"低清晰度\", \"模糊\", \"重影\", \"多余肢体\", \"畸形手部\", \"角色不一致\", \"穿帮道具\", \"文本乱码\", \"水印\", \"过曝\"], \"time_mode\": \"mainline\", \"shot_role\": \"character\"}, \"source\": {\"description\": \"李凡的中近景。他站在一片模糊的竹林背景前，双眼圆睁，嘴巴微张，仿佛刚刚得知了某个颠覆性的消息。他猛地吸了一口气，胸膛剧烈起伏。\", \"actions\": [\"李凡震惊地吸气\", \"表情凝固\"], \"narration\": \"（内心）嘶——\", \"on_screen_text\": \"\", \"scene_notes\": \"章节标题后，李凡因前情（如刚得知的某个重大信息或真相）而陷入极度震惊。重要性：支线；呈现：叙事画面；时间顺序：叙事29->故事22（主时间线）。\"}, \"candidate_meta\": {\"scene_id\": \"S0029\", \"shot_id\": \"S0029_SH02\", \"shot_index\": 2, \"shot_role\": \"character\", \"camera_hint\": \"中近景\", \"description_hint\": \"李凡的反应镜头，推进李凡震惊\", \"focus_characters\": [\"李凡\"], \"focus_locations\": [], \"has_dialogue\": false, \"has_narration\": true, \"has_on_screen_text\": false, \"style_preset\": \"cinematic, detailed, consistent character design, coherent lighting\", \"chronology_summary\": {\"narrative_order\": 29, \"story_chronology_order\": 22, \"story_chronology_group\": \"CG0021\", \"time_mode\": \"mainline\", \"confidence\": 0.81, \"order_delta\": -7, \"anchor_label\": \"\", \"anchor_type\": \"unknown\", \"constraint_count\": 1, \"evidence_count\": 0}}}]"
    }
  ]
}