invokeai_models
Manage InvokeAI models by listing, installing from HuggingFace/Civitai or local paths, updating, deleting, and checking install progress.
Instructions
Manage installed models in the local InvokeAI instance.
[RATIONALE] Model lifecycle (discovery, install from HF/Civitai, config, removal) is a single domain with a shared record store, so all operations live under this portmanteau.
Sources accepted by install: HuggingFace repo ids (e.g. "stabilityai/stable-diffusion-xl-base-1.0"), Civitai model URLs, or local paths. Install runs asynchronously; poll with operation='installs'.
Return Format
{"success": bool, "operation": str, "data": {...}, "message": str}
Examples
invokeai_models(operation="list", model_type="main") invokeai_models(operation="install", source="stabilityai/stable-diffusion-xl-base-1.0", config={"name": "SDXL Base"}) invokeai_models(operation="delete", key="sdxl-main")
Notes:
model_type values follow InvokeAI taxonomy (main, lora, vae, ...).
Install may download multiple GB; check operation='installs' for progress.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Model key (required for get, update, delete). | |
| limit | No | Max models to return. | |
| config | No | Install config overrides: {name, type, base, description}. | |
| search | No | Search filter on model name. | |
| source | No | Install source: HF repo id, Civitai URL, or local path (required for install). | |
| operation | Yes | Model manager operation to perform. | |
| model_type | No | Filter by model type: main, lora, vae, controlnet, embedding, spandrel_image_to_image. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||