{
  "messages": [
    {
      "role": "system",
      "content": "You are a screenwriting agent. The program already created a script skeleton and shot plan. Do not change scene_id or shot_id ordering. Keep the number of shots stable. Chronology is program-owned. Use it to keep flashback, dream, rumor, and parallel-line language consistent, but do not rewrite chronology fields. Refine language, dialogue, narration, and shot descriptions while preserving the program structure. Prefer the existing entity display names from the entity context. Do not invent unnecessary new speaker variants when the candidate already provides a stable character name. Return JSON only."
    },
    {
      "role": "user",
      "content": "Given the scene payload, chronology context, entity context, and the program-generated script candidate, refine it into a concise screenplay. Output STRICT JSON with keys: scene_id, shots (list), scene_notes, audio_notes, narrator_profile_id. Shot schema: {shot_id,description,camera,actions,dialogue,narration,on_screen_text,narrator_profile_id,narration_delivery_hint}. dialogue is a list of {speaker,speaker_entity_uid,delivery_hint,line}. speaker_entity_uid and narrator_profile_id are program-owned identity fields: preserve the candidate values when unsure, and do not fabricate random IDs. Keep the same shot count as the candidate unless the candidate is malformed. Keep the narrative presentation order, but make the script language consistent with chronology time_mode, anchor, and ordering hints. Prefer existing characters and locations. Return a single JSON object and nothing else (no markdown, no code fences). If unsure, return {\"scene_id\":\"\",\"shots\":[]}.\n\nSCENE:\n{\"candidate_id\": \"C0014-SC02\", \"title\": \"开启玉佩\", \"summary\": \"李凡在玄天剑意引导下运转道息，成功开启双鱼玉佩存取物品，令茯苓气走。\", \"type\": [\"动作\", \"系统/设定\"], \"tone\": [\"庄严\"], \"importance\": \"主线\", \"presentation\": [\"文字卡片\", \"旁白+画面\"], \"key_beats\": [\"玄天剑意引导行炁\", \"成功开启储物空间\", \"茯苓气走\"], \"characters\": [\"李凡\", \"茯苓\"], \"locations\": [], \"continuation_of_prev\": false, \"source_chunk_id\": \"C0014\", \"source_start_para\": 415, \"source_end_para\": 418, \"text\": \"呼吸之间，他只感到从右臂手腕，大拇指与小臂连接的关窍处，传来一股明显的跳动，仿佛有一条游鱼沿着右臂内的经脉逆走，顺着躯壳里河流一般的间隙，落入小腹中转了一圈，然后又原路返回，返回到手腕里藏着。\\n李凡也不是傻的，立刻明白是玄天剑意指点，而且这可真是字面意义上得理顺经络，直接把行炁的路线都过了一遍。当即他就沿着这条经络，将内景的道息集结起来，伸手握住了双鱼玉佩。\\n\\n随即李凡的脑海中一片清明，仿佛看到了一个系统似的空间，只是心念一动，就把怀里的经卷和山主给的珍珠收入玉佩，又随手拿了一身替换的道衣出来。\\n\\n“还真是蛮简单的。多谢姐姐指点。”\\n\\n又是一个妖孽！茯苓把眼一翻，气得掩面而走。\", \"text_preview\": \"呼吸之间，他只感到从右臂手腕，大拇指与小臂连接的关窍处，传来一股明显的跳动，仿佛有一条游鱼沿着右臂内的经脉逆走，顺着躯壳里河流一般的间隙，落入小腹中转了一圈，…\", \"candidate_meta\": {\"candidate_id\": \"C0014-SC02\", \"record_count\": 4, \"char_len\": 292, \"structure_counts\": {\"body\": 3, \"dialogue\": 1}, \"boundary_reasons_after\": [\"chapter_heading\"], \"matched_entities\": [{\"entity_id\": \"E000064\", \"name\": \"茯苓\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"茯苓\", \"姐姐\"], \"score\": 7.8}, {\"entity_id\": \"E000009\", \"name\": \"山主\", \"type\": \"职位称号\", \"subtype\": \"\", \"matched_terms\": [\"山主\"], \"score\": 5.8}, {\"entity_id\": \"E000002\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"李凡\"], \"score\": 5.8}, {\"entity_id\": \"E000054\", \"name\": \"系统\", \"type\": \"系统面板\", \"subtype\": \"系统\", \"matched_terms\": [\"系统\"], \"score\": 5.8}, {\"entity_id\": \"E000021\", \"name\": \"小剑\", \"type\": \"物品\", \"subtype\": \"兵器\", \"matched_terms\": [\"玄天剑意\", \"剑意\"], \"score\": 4.8}, {\"entity_id\": \"E000068\", \"name\": \"真炁\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"道息\"], \"score\": 2.8}, {\"entity_id\": \"E000066\", \"name\": \"储物玉佩\", \"type\": \"物品\", \"subtype\": \"法器\", \"matched_terms\": [\"双鱼玉佩\"], \"score\": 2.4}, {\"entity_id\": \"E000045\", \"name\": \"炁海\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"内景\"], \"score\": 2.2}], \"heuristic_types\": [\"系统/设定\"], \"heuristic_tones\": [\"庄严\"], \"heuristic_presentation\": [\"文字卡片\", \"旁白+画面\"], \"heuristic_importance\": \"主线\"}, \"scene_id\": \"S0047\"}\n\nCHRONOLOGY:\n{\"scene_id\": \"S0047\", \"narrative_order\": 47, \"story_chronology_order\": 37, \"story_chronology_group\": \"CG0037\", \"time_mode\": \"mainline\", \"confidence\": 0.99, \"order_delta\": -10, \"temporal_anchor\": {\"label\": \"过了一遍\", \"normalized_label\": \"过了一遍\", \"anchor_type\": \"forward_marker\", \"relative_direction\": \"after\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": true, \"anchor_scene_id\": \"S0046\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0046\", \"confidence\": 0.78, \"reason\": \"narrative_forward\"}], \"evidence\": [{\"kind\": \"forward\", \"field\": \"text\", \"text\": \"过了一遍\", \"snippet\": \"字面意义上得理顺经络，直接把行炁的路线都过了一遍。当即他就沿着这条经络，将内景的道息集结\"}]}\n\nENTITY CONTEXT:\n{\"registry_entities\": [{\"entity_uid\": \"E000002\", \"canonical_name\": \"李凡\", \"aliases\": [\"小相公\", \"小友\", \"小子\", \"清月\", \"李清月\", \"道子\", \"小色鬼\"], \"type\": \"人物\", \"subtype\": \"\", \"voice_card_id\": \"VO000002\"}, {\"entity_uid\": \"E000064\", \"canonical_name\": \"茯苓\", \"aliases\": [\"茯苓姐姐\", \"姐姐\", \"女婢\", \"茯苓姐\", \"神仙姐姐\", \"玄女\"], \"type\": \"人物\", \"subtype\": \"\", \"voice_card_id\": \"VO000064\"}], \"kg_entities\": [{\"entity_id\": \"E000064\", \"name\": \"茯苓\", \"type\": \"人物\", \"subtype\": \"\", \"aliases\": [\"茯苓姐姐\", \"姐姐\", \"女婢\", \"茯苓姐\", \"神仙姐姐\", \"玄女\"], \"attributes\": {}, \"descriptions\": [\"合道飞升的仙尊\", \"仙宫玄门创教始祖\", \"捏李凡脸蛋\", \"替李凡打探差事\", \"为李凡着急\", \"替李凡办事\", \"资质较差\", \"十年开辟内景\"], \"evidence\": [\"茯苓介绍道，“这三位是本界合道飞升的仙尊\", \"左手是一名素面纤纤的仙子\", \"茯苓没好气得捏了李凡脸蛋一把\", \"我去替你打探下\", \"可把茯苓急坏了\", \"茯苓一副气冲冲得模样\", \"茯苓白了他一眼\", \"茯苓花了十年开辟内景\"], \"mentions\": [{\"chunk_id\": \"C0018\", \"summary\": \"询问李凡见非物\", \"evidence\": [\"茯苓犹豫了一下\"], \"attributes\": {}}, {\"chunk_id\": \"C0019\", \"summary\": \"解释三种货币\", \"evidence\": [\"茯苓用食指分别扒拉出三色的钱币来\"], \"attributes\": {}}, {\"chunk_id\": \"C0020\", \"summary\": \"帮李凡戴不知面\", \"evidence\": [\"茯苓招招手，把李凡半搂到怀里帮他束发戴冠\"], \"attributes\": {}}, {\"chunk_id\": \"C0021\", \"summary\": \"在查账\", \"evidence\": [\"扭头见茯苓还在查账\"], \"attributes\": {}}, {\"chunk_id\": \"C0021\", \"summary\": \"留钱给李凡玩\", \"evidence\": [\"茯苓留给他玩的\"], \"attributes\": {}}, {\"chunk_id\": \"C0022\", \"summary\": \"帮李凡清洗墨臭\", \"evidence\": [\"把墨臭给冲淋干净\"], \"attributes\": {}}, {\"chunk_id\": \"C0023\", \"summary\": \"介绍三尊仙像\", \"evidence\": [\"茯苓介绍道，“这三位是本界合道飞升的仙尊\"], \"attributes\": {}}, {\"chunk_id\": \"C0023\", \"summary\": \"三尊仙像之一\", \"evidence\": [\"左手是一名素面纤纤的仙子\"], \"attributes\": {}}, {\"chunk_id\": \"C0024\", \"summary\": \"捏李凡脸蛋\", \"evidence\": [\"茯苓没好气得捏了李凡脸蛋一把\"], \"attributes\": {}}, {\"chunk_id\": \"C0027\", \"summary\": \"为李凡着急\", \"evidence\": [\"茯苓一副气冲冲得模样\"], \"attributes\": {}}, {\"chunk_id\": \"C0028\", \"summary\": \"告知牧龙任务\", \"evidence\": [\"茯苓白了他一眼\"], \"attributes\": {}}, {\"chunk_id\": \"C0029\", \"summary\": \"对比李凡修行速度\", \"evidence\": [\"茯苓花了十年开辟内景\"], \"attributes\": {}}], \"mention_count\": 20, \"observation_count\": 20, \"first_seen\": \"C0012\", \"last_seen\": \"C0029\"}, {\"entity_id\": \"E000002\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"aliases\": [\"小相公\", \"小友\", \"小子\", \"清月\", \"李清月\", \"道子\", \"小色鬼\"], \"attributes\": {}, \"descriptions\": [\"修炼基础剑气入门\", \"观想出气剑\", \"墨竹山娄观道受道弟子\", \"喝五仙汤修炼\", \"修炼剑法\", \"练习乾坤飞龙剑\", \"被望舒真人带回\", \"道子\"], \"evidence\": [\"李凡在心中腹诽着\", \"李凡立刻知道，是玄天剑意在传授自己剑招\", \"李凡就先自己试了一下\", \"清月跟我来吧\", \"李凡一阵傻眼\", \"清月，你拜过月也该知道\", \"查出来你这个道子\", \"李凡艰难得咽了口唾沫\"], \"mentions\": [{\"chunk_id\": \"C0019\", \"summary\": \"询问竹山货币\", \"evidence\": [\"李凡在一旁听得傻眼\"], \"attributes\": {}}, {\"chunk_id\": \"C0020\", \"summary\": \"被茯苓束发戴冠\", \"evidence\": [\"茯苓招招手，把李凡半搂到怀里帮他束发戴冠\"], \"attributes\": {}}, {\"chunk_id\": \"C0021\", \"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\": \"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\nSCRIPT CANDIDATE:\n{\"scene_id\": \"S0047\", \"scene_notes\": \"李凡在玄天剑意引导下运转道息，成功开启双鱼玉佩存取物品，令茯苓气走。；重要性：主线；呈现：文字卡片 / 旁白+画面；时间顺序：叙事47->故事37；时间锚点：过了一遍\", \"audio_notes\": \"保留对白节奏；动作点补音效\", \"narrator_profile_id\": \"narrator_main_cn\", \"chronology\": {\"scene_id\": \"S0047\", \"narrative_order\": 47, \"story_chronology_order\": 37, \"story_chronology_group\": \"CG0037\", \"time_mode\": \"mainline\", \"confidence\": 0.99, \"order_delta\": -10, \"temporal_anchor\": {\"label\": \"过了一遍\", \"normalized_label\": \"过了一遍\", \"anchor_type\": \"forward_marker\", \"relative_direction\": \"after\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": true, \"anchor_scene_id\": \"S0046\"}, \"constraints\": [{\"relation\": \"after\", \"target_scene_id\": \"S0046\", \"confidence\": 0.78, \"reason\": \"narrative_forward\"}], \"evidence\": [{\"kind\": \"forward\", \"field\": \"text\", \"text\": \"过了一遍\", \"snippet\": \"字面意义上得理顺经络，直接把行炁的路线都过了一遍。当即他就沿着这条经络，将内景的道息集结\"}]}, \"shots\": [{\"shot_id\": \"S0047_SH01\", \"camera\": \"中景\", \"description\": \"场景建立镜头，带出玄天剑意引导行炁\", \"actions\": [\"玄天剑意引导行炁\"], \"dialogue\": [], \"narration\": \"\", \"on_screen_text\": \"\", \"focus_characters\": [\"李凡\"], \"focus_locations\": [], \"candidate_meta\": {\"shot_role\": \"opening\", \"description_hint\": \"场景建立镜头，带出玄天剑意引导行炁\", \"camera_hint\": \"中景\", \"shot_index\": 1, \"chronology_summary\": {\"narrative_order\": 47, \"story_chronology_order\": 37, \"story_chronology_group\": \"CG0037\", \"time_mode\": \"mainline\", \"confidence\": 0.99, \"order_delta\": -10, \"anchor_label\": \"过了一遍\", \"anchor_type\": \"forward_marker\", \"constraint_count\": 1, \"evidence_count\": 1}}, \"narrator_profile_id\": \"narrator_main_cn\"}, {\"shot_id\": \"S0047_SH02\", \"camera\": \"双人中景\", \"description\": \"李凡的反应镜头，推进成功开启储物空间\", \"actions\": [\"成功开启储物空间\"], \"dialogue\": [], \"narration\": \"\", \"on_screen_text\": \"\", \"focus_characters\": [\"李凡\", \"茯苓\"], \"focus_locations\": [], \"candidate_meta\": {\"shot_role\": \"character\", \"description_hint\": \"李凡的反应镜头，推进成功开启储物空间\", \"camera_hint\": \"双人中景\", \"shot_index\": 2, \"chronology_summary\": {\"narrative_order\": 47, \"story_chronology_order\": 37, \"story_chronology_group\": \"CG0037\", \"time_mode\": \"mainline\", \"confidence\": 0.99, \"order_delta\": -10, \"anchor_label\": \"过了一遍\", \"anchor_type\": \"forward_marker\", \"constraint_count\": 1, \"evidence_count\": 1}}, \"narrator_profile_id\": \"narrator_main_cn\"}, {\"shot_id\": \"S0047_SH03\", \"camera\": \"正反打\", \"description\": \"对白推进核心信息\", \"actions\": [\"成功开启储物空间\", \"茯苓气走\"], \"dialogue\": [{\"speaker\": \"李凡\", \"speaker_entity_uid\": \"\", \"delivery_hint\": \"平稳陈述\", \"line\": \"还真是蛮简单的。多谢姐姐指点。\"}], \"narration\": \"\", \"on_screen_text\": \"李凡在玄天剑意引导下运转道息，成功开启双鱼玉佩存取物品，令茯苓气走。\", \"focus_characters\": [\"李凡\", \"茯苓\"], \"focus_locations\": [], \"candidate_meta\": {\"shot_role\": \"dialogue_or_action\", \"description_hint\": \"对白推进核心信息\", \"camera_hint\": \"正反打\", \"shot_index\": 3, \"chronology_summary\": {\"narrative_order\": 47, \"story_chronology_order\": 37, \"story_chronology_group\": \"CG0037\", \"time_mode\": \"mainline\", \"confidence\": 0.99, \"order_delta\": -10, \"anchor_label\": \"过了一遍\", \"anchor_type\": \"forward_marker\", \"constraint_count\": 1, \"evidence_count\": 1}}, \"narrator_profile_id\": \"narrator_main_cn\"}, {\"shot_id\": \"S0047_SH04\", \"camera\": \"特写\", \"description\": \"李凡收束镜头，停在茯苓气走\", \"actions\": [\"茯苓气走\"], \"dialogue\": [], \"narration\": \"\", \"on_screen_text\": \"\", \"focus_characters\": [\"李凡\"], \"focus_locations\": [], \"candidate_meta\": {\"shot_role\": \"closing\", \"description_hint\": \"李凡收束镜头，停在茯苓气走\", \"camera_hint\": \"特写\", \"shot_index\": 4, \"chronology_summary\": {\"narrative_order\": 47, \"story_chronology_order\": 37, \"story_chronology_group\": \"CG0037\", \"time_mode\": \"mainline\", \"confidence\": 0.99, \"order_delta\": -10, \"anchor_label\": \"过了一遍\", \"anchor_type\": \"forward_marker\", \"constraint_count\": 1, \"evidence_count\": 1}}, \"narrator_profile_id\": \"narrator_main_cn\"}], \"candidate_meta\": {\"scene_id\": \"S0047\", \"source_chunk_id\": \"C0014\", \"source_start_para\": 415, \"source_end_para\": 418, \"characters\": [\"李凡\", \"茯苓\"], \"locations\": [], \"key_beats\": [\"玄天剑意引导行炁\", \"成功开启储物空间\", \"茯苓气走\"], \"shot_count_hint\": 4, \"scene_summary\": \"李凡在玄天剑意引导下运转道息，成功开启双鱼玉佩存取物品，令茯苓气走。\", \"scene_text_preview\": \"呼吸之间，他只感到从右臂手腕，大拇指与小臂连接的关窍处，传来一股明显的跳动，仿佛有一条游鱼沿着右臂内的经脉逆走，顺着躯壳里河流一般的间隙，落入小腹中转了一圈，…\", \"chronology_summary\": {\"narrative_order\": 47, \"story_chronology_order\": 37, \"story_chronology_group\": \"CG0037\", \"time_mode\": \"mainline\", \"confidence\": 0.99, \"order_delta\": -10, \"anchor_label\": \"过了一遍\", \"anchor_type\": \"forward_marker\", \"constraint_count\": 1, \"evidence_count\": 1}}}"
    }
  ]
}