Create saved styles / prompt presets #3

Closed
opened 2026-03-21 00:41:52 +01:00 by claude · 2 comments
Owner

Set up reusable style presets in the SD WebUI so the MCP server can reference them by name.

Why

Currently every generation requires crafting a full prompt from scratch. Saved styles allow consistent results with minimal input — e.g. the MCP server could accept style: "architectural-maquette" and automatically prepend the right prompt tokens and negative prompt.

Steps

  1. Create styles.csv entries for key styles:
    • architectural-maquette — white model, green trees, clean geometric buildings
    • isometric-game — colorful isometric citybuilder aesthetic
    • concept-art — cinematic game key art style
  2. Each style should define both positive and negative prompt additions
  3. Update the MCP server on alcatraz to expose a list_styles tool and accept a style parameter in generate_image
Set up reusable style presets in the SD WebUI so the MCP server can reference them by name. ## Why Currently every generation requires crafting a full prompt from scratch. Saved styles allow consistent results with minimal input — e.g. the MCP server could accept `style: "architectural-maquette"` and automatically prepend the right prompt tokens and negative prompt. ## Steps 1. Create `styles.csv` entries for key styles: - `architectural-maquette` — white model, green trees, clean geometric buildings - `isometric-game` — colorful isometric citybuilder aesthetic - `concept-art` — cinematic game key art style 2. Each style should define both positive and negative prompt additions 3. Update the MCP server on alcatraz to expose a `list_styles` tool and accept a `style` parameter in `generate_image`
Author
Owner

Update from caymans session

\ has been created on caymans with three presets:

Style name Description
\ White scale model / diorama with green trees, tilt-shift, studio lighting
\ Colorful city builder game art, low-poly, clean vector style
\ Cinematic game key art, dramatic lighting, matte painting

All styles use \ placeholder so the user prompt gets inserted into the template. Each has a matching negative prompt.

The file is gitignored (upstream .gitignore excludes /styles.csv), so it lives only on disk at C:/AI/stable-diffusion-webui/styles.csv.

Remaining work (alcatraz side)

  • Update /srv/services/sd-mcp/index.js to add a \ tool that queries - [ ] Add a \ parameter to the \ tool that passes the style name in the API request
  • The WebUI API accepts styles via the \ array field in txt2img/img2img requests
## Update from caymans session \ has been created on caymans with three presets: | Style name | Description | |---|---| | \ | White scale model / diorama with green trees, tilt-shift, studio lighting | | \ | Colorful city builder game art, low-poly, clean vector style | | \ | Cinematic game key art, dramatic lighting, matte painting | All styles use \ placeholder so the user prompt gets inserted into the template. Each has a matching negative prompt. The file is gitignored (upstream .gitignore excludes /styles.csv), so it lives only on disk at C:/AI/stable-diffusion-webui/styles.csv. ### Remaining work (alcatraz side) - [ ] Update /srv/services/sd-mcp/index.js to add a \ tool that queries - [ ] Add a \ parameter to the \ tool that passes the style name in the API request - [ ] The WebUI API accepts styles via the \ array field in txt2img/img2img requests
Author
Owner

MCP server updated on alcatraz to support style and lora parameters in generate_image, plus new list_styles and list_loras tools.

Styles are defined in the SD WebUI styles.csv and can be referenced by name. LoRAs are referenced by filename and appended as <lora:name:weight> to the prompt.

Test with architectural-maquette style confirmed working.

MCP server updated on alcatraz to support `style` and `lora` parameters in `generate_image`, plus new `list_styles` and `list_loras` tools. Styles are defined in the SD WebUI `styles.csv` and can be referenced by name. LoRAs are referenced by filename and appended as `<lora:name:weight>` to the prompt. Test with `architectural-maquette` style confirmed working.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
frankenbit/stable-diffusion-webui#3
No description provided.