{
  "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. 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. Shot schema: {shot_id,description,camera,actions,dialogue,narration,on_screen_text}. dialogue is a list of {speaker,line}. 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\": \"C0015-SC02\", \"title\": \"观想炼剑气\", \"summary\": \"李凡理解玄天剑意选功法的原因，观想墨剑成功炼出第一道剑气。\", \"type\": [\"修炼\", \"动作\", \"内心独白\"], \"tone\": [\"专注\", \"紧张\", \"成就\"], \"importance\": \"主线\", \"presentation\": [\"直接画面\", \"氛围镜头\", \"旁白+画面\"], \"key_beats\": [\"玄天剑意选功法的缘由\", \"观想墨剑投影\", \"炼出紫霞剑气\"], \"characters\": [\"李凡\"], \"locations\": [\"经楼\", \"净室\"], \"continuation_of_prev\": false, \"source_chunk_id\": \"C0015\", \"source_start_para\": 435, \"source_end_para\": 443, \"text\": \"其实看到这一点，李凡就明白玄天剑意执意替他选这部功法的缘由了。\\n剑意剑意，那它之前不管有何种手段，都是剑法上的神通修为。竹山教虽然没有什么高深的末期功法，但玄天剑意有啊！它都一路杀到虚星道祖面前了，还差高级剑法？\\n所以这部练气期，上来就能炼出一堆气剑使用的基础剑气入门，站在玄天剑意的角度看，那确实是上上等的功法了。\\n\\n那么具体要怎么炼呢？\\n\\n其实真的很简单，用脑子想的。\\n\\n说白了，就是在神庭，也就是脑子里，先观想投影出‘观’，以《基础剑气入门》为例，就是直接幻想出一把意念中的宝剑。然后将形成的‘剑观’，以神光照应在内景炁海里，即可将炁海内的真炁，依此‘观’凝结，淬炼出‘剑气’了。\\n如此也可以看出，这最后成型的‘剑气’品质如何，完全取决于一开始的‘观’，要是从源头上就误入歧途，那自然谬以千里，最后啥玩意也淬炼不出。所以才需要求取真经，观看正宗的修炼功法，以‘观’正道。\\n\\n尤其一般五行遁法修炼的真炁，属于自然现象，比较难以用图文描述，因此那些墨竹的功法上，都会用法术刻录幻像一般的‘观想’，方便修行者在入定时置身幻境之中，好方便修炼五行真炁。\\n而《基础剑气入门》就不必那么复杂了，毕竟观想的是实物，确实比较容易想象，而且李凡一看这剑式就认得了，就是经楼门口悬的那把剑嘛！还晃了老子一眼呢！\\n\\n‘玄天剑意建议宿主先参考功法尺寸，把剑制先原样临摹出来……’\\n\\n切，不就是CAD制图嘛，简单得很！\\n\\n李凡参考剑气入门里标注的尺寸和细节，直接在脑子里来个三维投影，治具开模，激光打印，一气呵成！\\n哧，一道锋锐无匹的气剑，自刚才李凡运气走过的右手经脉中泄出，一击劈破净室内盘旋袅绕的香烟，悬空凝成一把八面汉剑。\\n剑身直挺，圆茎尖锋，剑长三尺，茎长五寸，与那把墨剑，确实一模一样的规格。如果非要说还有什么瑕疵或不同，就是这把剑的材质并非金玉，而很明显的，是以李凡之前在外山墨竹林的蒲团上，打坐一百秒时，吐纳入体，开辟出炁海内景的紫霞真炁所化。\\n\\n剑脊浓如墨色，剑锋上紫气缭绕，李凡把剑卧在手里，明显能感觉剑茎依然与右臂的经脉相连，插在掌心里直通炁海，不断消耗着真炁维持成型。\\n他持剑随手乱挥了一下，谁知这气剑全无重量，快如一道紫电，剑锋扫过净室里的床铺台案，把桌椅凳子都齐齐斩成两段，笔墨纸砚噼里啪啦摔了一地。\", \"text_preview\": \"其实看到这一点，李凡就明白玄天剑意执意替他选这部功法的缘由了。 剑意剑意，那它之前不管有何种手段，都是剑法上的神通修为。竹山教虽然没有什么高深的末期功法，但玄…\", \"candidate_meta\": {\"candidate_id\": \"C0015-SC02\", \"record_count\": 9, \"char_len\": 953, \"structure_counts\": {\"body\": 5, \"short_line\": 3, \"dialogue\": 1}, \"boundary_reasons_after\": [\"time_transition\", \"structure_break\", \"long_scene_transition\", \"hard_length_break\"], \"matched_entities\": [{\"entity_id\": \"E000070\", \"name\": \"真炁\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"真炁\", \"五行真炁\", \"紫霞真炁\"], \"score\": 9.6}, {\"entity_id\": \"E000042\", \"name\": \"竹山\", \"type\": \"组织\", \"subtype\": \"\", \"matched_terms\": [\"竹山\", \"竹山教\"], \"score\": 7.8}, {\"entity_id\": \"E000071\", \"name\": \"炁海\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"炁海\", \"内景\"], \"score\": 7.2}, {\"entity_id\": \"E000074\", \"name\": \"基础剑气入门\", \"type\": \"功法体系\", \"subtype\": \"\", \"matched_terms\": [\"基础剑气入门\", \"剑气入门\"], \"score\": 7.1}, {\"entity_id\": \"E000002\", \"name\": \"李凡\", \"type\": \"人物\", \"subtype\": \"\", \"matched_terms\": [\"李凡\"], \"score\": 5.8}, {\"entity_id\": \"E000072\", \"name\": \"玄天剑意\", \"type\": \"系统面板\", \"subtype\": \"\", \"matched_terms\": [\"玄天剑意\"], \"score\": 5.8}, {\"entity_id\": \"E000059\", \"name\": \"玄天剑意\", \"type\": \"概念法则\", \"subtype\": \"\", \"matched_terms\": [\"玄天剑意\"], \"score\": 5.4}, {\"entity_id\": \"E000057\", \"name\": \"五行遁法\", \"type\": \"功法体系\", \"subtype\": \"\", \"matched_terms\": [\"五行遁法\"], \"score\": 5.2}, {\"entity_id\": \"E000060\", \"name\": \"基础剑气入门\", \"type\": \"物品\", \"subtype\": \"\", \"matched_terms\": [\"基础剑气入门\"], \"score\": 5.2}, {\"entity_id\": \"E000063\", \"name\": \"墨剑\", \"type\": \"物品\", \"subtype\": \"兵器\", \"matched_terms\": [\"墨剑\"], \"score\": 5.2}], \"heuristic_types\": [\"动作\", \"内心独白\", \"环境描写\"], \"heuristic_tones\": [\"庄严\", \"紧张\"], \"heuristic_presentation\": [\"直接画面\", \"氛围镜头\", \"旁白+画面\"], \"heuristic_importance\": \"主线\"}, \"scene_id\": \"S0051\"}\n\nCHRONOLOGY:\n{\"scene_id\": \"S0051\", \"narrative_order\": 51, \"story_chronology_order\": 40, \"story_chronology_group\": \"CG0040\", \"time_mode\": \"dream\", \"confidence\": 0.987, \"order_delta\": -11, \"temporal_anchor\": {\"label\": \"幻境\", \"normalized_label\": \"dream\", \"anchor_type\": \"dream_marker\", \"relative_direction\": \"unknown\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": true, \"anchor_scene_id\": \"S0050\"}, \"constraints\": [{\"relation\": \"same_time\", \"target_scene_id\": \"S0050\", \"confidence\": 0.45, \"reason\": \"dream_attached_to_frame\"}], \"evidence\": [{\"kind\": \"dream\", \"field\": \"text\", \"text\": \"幻境\", \"snippet\": \"像一般的‘观想’，方便修行者在入定时置身幻境之中，好方便修炼五行真炁。 而《基础剑气\"}]}\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\"}, {\"entity_id\": \"E000049\", \"name\": \"经楼\", \"type\": \"地点\", \"subtype\": \"洞府/殿阁\", \"aliases\": [\"书阁\"], \"attributes\": {}, \"descriptions\": [\"存放道法\", \"挑选功法处\"], \"evidence\": [\"来到内院一间书阁前\", \"走出了经楼\"], \"mentions\": [{\"chunk_id\": \"C0009\", \"summary\": \"挑选功法地点\", \"evidence\": [\"你就进去经楼里，随便挑选两部看中的道法好了。\"], \"attributes\": {}}, {\"chunk_id\": \"C0011\", \"summary\": \"李凡离开\", \"evidence\": [\"走出了经楼\"], \"attributes\": {}}], \"mention_count\": 2, \"observation_count\": 2, \"first_seen\": \"C0009\", \"last_seen\": \"C0011\"}]\n\nSCRIPT CANDIDATE:\n{\"scene_id\": \"S0051\", \"scene_notes\": \"李凡理解玄天剑意选功法的原因，观想墨剑成功炼出第一道剑气。；重要性：主线；呈现：直接画面 / 氛围镜头 / 旁白+画面；时间模式：dream；时间顺序：叙事51->故事40；时间锚点：幻境\", \"audio_notes\": \"环境音先行；动作点补音效；梦境段强调朦胧氛围\", \"chronology\": {\"scene_id\": \"S0051\", \"narrative_order\": 51, \"story_chronology_order\": 40, \"story_chronology_group\": \"CG0040\", \"time_mode\": \"dream\", \"confidence\": 0.987, \"order_delta\": -11, \"temporal_anchor\": {\"label\": \"幻境\", \"normalized_label\": \"dream\", \"anchor_type\": \"dream_marker\", \"relative_direction\": \"unknown\", \"amount\": null, \"unit\": \"\", \"time_of_day\": \"\", \"explicit\": true, \"anchor_scene_id\": \"S0050\"}, \"constraints\": [{\"relation\": \"same_time\", \"target_scene_id\": \"S0050\", \"confidence\": 0.45, \"reason\": \"dream_attached_to_frame\"}], \"evidence\": [{\"kind\": \"dream\", \"field\": \"text\", \"text\": \"幻境\", \"snippet\": \"像一般的‘观想’，方便修行者在入定时置身幻境之中，好方便修炼五行真炁。 而《基础剑气\"}]}, \"shots\": [{\"shot_id\": \"S0051_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\": 51, \"story_chronology_order\": 40, \"story_chronology_group\": \"CG0040\", \"time_mode\": \"dream\", \"confidence\": 0.987, \"order_delta\": -11, \"anchor_label\": \"幻境\", \"anchor_type\": \"dream_marker\", \"constraint_count\": 1, \"evidence_count\": 1}}}, {\"shot_id\": \"S0051_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\": 51, \"story_chronology_order\": 40, \"story_chronology_group\": \"CG0040\", \"time_mode\": \"dream\", \"confidence\": 0.987, \"order_delta\": -11, \"anchor_label\": \"幻境\", \"anchor_type\": \"dream_marker\", \"constraint_count\": 1, \"evidence_count\": 1}}}, {\"shot_id\": \"S0051_SH03\", \"camera\": \"跟拍\", \"description\": \"动作或状态变化的推进镜头\", \"actions\": [\"观想墨剑投影\", \"炼出紫霞剑气\"], \"dialogue\": [], \"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\": 51, \"story_chronology_order\": 40, \"story_chronology_group\": \"CG0040\", \"time_mode\": \"dream\", \"confidence\": 0.987, \"order_delta\": -11, \"anchor_label\": \"幻境\", \"anchor_type\": \"dream_marker\", \"constraint_count\": 1, \"evidence_count\": 1}}}], \"candidate_meta\": {\"scene_id\": \"S0051\", \"source_chunk_id\": \"C0015\", \"source_start_para\": 435, \"source_end_para\": 443, \"characters\": [\"李凡\"], \"locations\": [\"经楼\", \"净室\"], \"key_beats\": [\"玄天剑意选功法的缘由\", \"观想墨剑投影\", \"炼出紫霞剑气\"], \"shot_count_hint\": 3, \"scene_summary\": \"李凡理解玄天剑意选功法的原因，观想墨剑成功炼出第一道剑气。\", \"scene_text_preview\": \"其实看到这一点，李凡就明白玄天剑意执意替他选这部功法的缘由了。 剑意剑意，那它之前不管有何种手段，都是剑法上的神通修为。竹山教虽然没有什么高深的末期功法，但玄…\", \"chronology_summary\": {\"narrative_order\": 51, \"story_chronology_order\": 40, \"story_chronology_group\": \"CG0040\", \"time_mode\": \"dream\", \"confidence\": 0.987, \"order_delta\": -11, \"anchor_label\": \"幻境\", \"anchor_type\": \"dream_marker\", \"constraint_count\": 1, \"evidence_count\": 1}}}"
    }
  ]
}