add_extra_path
Add a directory to ComfyUI extra search-path YAML config for model categories like checkpoints, loras, or vae. Writes config and returns updated view; restart ComfyUI to apply.
Instructions
Add a directory to a ComfyUI extra search-path YAML config. Use this for model categories such as checkpoints/loras/vae and, on ComfyUI builds that support it, custom_nodes. Writes the config file and returns the updated view; restart ComfyUI to apply.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Directory path to add/remove for that category. Absolute paths are safest; relative paths are resolved by ComfyUI. | |
| group | No | Top-level YAML group to edit. Defaults to comfyui_mcp. | |
| target | No | Config target: auto chooses Desktop config if it exists, otherwise standalone; standalone uses <COMFYUI_PATH>/extra_model_paths.yaml; desktop uses the OS app-data extra_models_config.yaml. | |
| category | Yes | ComfyUI search-path category, e.g. checkpoints, loras, vae, diffusion_models, unet_gguf, or custom_nodes. | |
| is_default | No | Set is_default on a newly-created group. Existing groups are not overwritten. | |
| config_path | No | Explicit YAML config path override, mainly for advanced/manual installs. |