build_prompt
Clean raw booru tags into a ready-to-use AI-art prompt. Pass a tag string to get formatted, optimized tags without network calls.
Instructions
Clean an already-known set of booru tags into a ready-to-use prompt. Use this when you already have a tag list (e.g. user pasted one or you received raw tags from search_posts) and only want the cleaned output. No network request is made.
tag_string accepts the SAME raw booru format that search_posts returns in raw_tags: space-separated, multi-word tags joined by UNDERSCORE ('1girl long_hair blue_eyes smile'). It also accepts a comma-separated list of already-cleaned tags ('1girl, long hair, blue eyes, smile') for idempotent re-cleaning. Do NOT pass natural-language sentences — split them into booru tags first (use autocomplete_tags to find the canonical form of each).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exclude | No | ||
| optimize | No | ||
| meta_tags | No | ||
| added_tags | No | ||
| tag_string | Yes | ||
| artist_tags | No | ||
| character_tags | No | ||
| copyright_tags | No | ||
| background_mode | No | keep | |
| resolve_conflicts | No | ||
| include_characters | No | ||
| include_copyrights | No | ||
| simple_background_replacement_tags | No |