set_extension_enabled
Enable or disable an installed ComfyUI node pack by renaming its folder, fixing startup issues without downloads or network access. Set the desired state safely.
Instructions
Turn an installed node pack on or off, the way ComfyUI-Manager does.
The safest operation in this whole concept, and the one worth reaching for first. It is a single rename inside custom_nodes: nothing is downloaded, no package moves, and calling it again with the other value puts everything back. When a pack breaks ComfyUI's startup, this is the fix - and it is the fix that still works then, because it needs neither ComfyUI nor a network, which is exactly what Manager's own HTTP route cannot say.
Manager's two spellings are both honoured. Disabling writes what Manager 3.x
writes (custom_nodes/.disabled/<name>); enabling looks for that and for the older
<name>.disabled beside it, so a pack switched off years ago comes back.
A state, not a toggle: asking for the state a pack is already in is reported and changes nothing, so a caller that is unsure does not flip it by accident.
Args: name: the pack, by folder name, registry id, or a distinctive part of either. enabled: True to turn it on, False to turn it off.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| enabled | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||