🎬 火宝短剧 - 基于AI的一站式短剧生成平台 《一句话生成完整短剧,从剧本到成片全自动化》 Huobao Drama - An AI-Powered End-to-End Short Drama Generator "One Sentence to Complete Drama: Fully Automated from Script to Final Video"
name: extractor description: Rules and methods for extracting characters, scenes, and props
Character, Scene & Prop Extraction Guide
Character Extraction Rules
Extracted character fields (corresponding one-to-one with the save_dedup_characters tool parameters):
- name (required): the character's full name
- role: the character's positioning — protagonist / supporting / extra
- appearance: appearance description (300-500 characters) — gender, age impression, facial features, physique, bearing. Do not output the character's personality traits separately; convert them into outward bearing and expression woven into the appearance description (e.g. "cold personality" should be written as "a cold gaze, a restrained expression, rarely smiling")
- styling: styling — hairstyle, clothing, makeup, accessories, etc.
- description: backstory and character relationships (optional supplement)
Scene Extraction Rules
Extracted scene fields (corresponding one-to-one with the save_dedup_scenes tool parameters):
- location (required): the specific place name
- time: time period (e.g. daytime / dusk / late night); the same location at a different time period counts as a new scene
- prompt: scene description — space, set dressing, period texture, key visual elements (pure background, no people)
- lighting: scene lighting — light sources, color tone, brightness contrast, mood
Prop Extraction Rules
Core principle: prefer extracting too few over too many. Props are high-cost assets used to generate white-background product shots and referenced by video close-ups; only plot-critical props are worth extracting. An episode usually has 0-3 key props; if there are more than 3, rank them by plot importance and keep only the top 3.
Both of the following conditions must be met — neither is optional:
- Directly drives the plot: the item's appearance, handover, damage, or discovery triggers a plot turn (e.g. a murder weapon, a token, a key document, a love-token gift, key evidence).
- Worth generating a dedicated image: later storyboards will give it close-ups or it recurs, so it needs a fixed appearance.
Three self-check questions (ask and answer for yourself for each candidate prop; if any answer is "no", drop it):
- (1) Does the plot still hold if it is removed? → If yes, do not extract (it is just a decorative prop)
- (2) Is it just an everyday item the character casually uses (phone, chopsticks, water cup, cigarettes, umbrella)? → If yes, do not extract
- (3) Is it part of the set dressing (tables and chairs, lamps, doors and windows, wall hangings, tableware)? → If yes, do not extract (these belong in the scene description)
Typical non-props: ordinary items used casually with no effect on the plot's direction; set dressing and furniture; items mentioned only once and never again; a character's regular attire (belongs in character styling).
If no prop qualifies, do not force an extraction — just pass an empty array when calling save_dedup_props.
Extracted prop fields (corresponding one-to-one with the save_dedup_props tool parameters):
- name (required): prop name
- type: category — daily / weapon / transportation / decoration / document, etc.
- description: physical appearance of the item only (material, color, shape, size, degree of wear, signs of damage, etc.); do not describe its plot purpose or its relation to characters or anything else
Props do not need an image prompt — a prop's final prompt is generated by the prompt-generation Agent before image generation (white-background product-shot specification).
Steps
- Call
read_script_for_extractionto read the current episode's script - Call
read_existing_charactersto view existing project characters and the characters already linked to the current episode - Call
read_existing_scenesto view existing project scenes and the scenes already linked to the current episode - Call
read_existing_propsto view existing project props and the props already linked to the current episode - Only extract the characters, scenes, and props actually involved in the current episode
- Call
save_dedup_charactersto save the characters and automatically link them to the current episode - Call
save_dedup_scenesto save the scenes and automatically link them to the current episode - Call
save_dedup_propsto save the props and automatically link them to the current episode
Current-Episode Rules
- The goal is to fill in the characters, scenes, and props needed by the "current episode", not to rescan the entire project
- If an asset already exists in the project but is not yet linked to the current episode, reuse it and link it to the current episode
- Deduplication rules: characters/props are matched exactly by name, scenes are matched exactly by [location + time period]; on a hit, prefer reuse — do not create duplicates
- Near-name deduplication: when a name carries a parenthesized qualifier or alias, compare by the main part before the parentheses (e.g. "Lin Xiaoyu (protagonist)" and "Lin Xiaoyu" are the same character/prop — reuse the existing one); the normalized_name returned by read_existing_characters / read_existing_props is the normalized name, and normalized_location works the same way for scenes — use these for the judgment