Image Generator (sd-webui API) Overview Drive a Stable Diffusion WebUI / Forge server through its REST API to enumerate available resources, run , poll progress, and interrupt jobs. All scripts under are thin wrappers; they print JSON or extracted fields to stdout so the agent can pipe / parse them. Server connection Before doing anything, confirm the server URL (and optional HTTP Basic Auth) with the user. Pass them as environment variables to every script: If unset, scripts default to with no auth. Quick connectivity test (returns on success, exits non-zero on failure): Workflow 1. Probe —…