build_prompt
Generate Stable Diffusion prompts from character names by analyzing Gelbooru tag frequency data to create accurate image generation strings.
Instructions
Given a character name, returns a ready-to-use image-generation prompt string like 'misty (pokemon), green eyes, orange hair, side ponytail, ...'. Internally calls get_character_tags with caching, then assembles the prompt with tags ordered by frequency (eye → hair → other).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| character_name | Yes | The Gelbooru tag for the character, e.g. 'misty_(pokemon)'. Use underscores as Gelbooru does. | |
| max_images | No | Posts to analyse (default 300). Cached after first fetch. | |
| include_other | No | Whether to include non-eye/hair tags (clothing, accessories, etc.) in the prompt. Default true. |