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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"character_name": "<character_name>"
},
"name": "build_prompt"
}
}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. |