filter by keys

Basic data handling: DictFilterByKeys

Creates a new dictionary with only the specified keys. This node takes a dictionary and a list of keys, then returns a new dictionary containing only the key-value pairs for the keys that exist in the original dictionary.

Pack: Basic data handling

custom_nodes.ComfyUI-basic_data_handling

Inputs (2)

NameTypeRequired
input_dictDICTrequired
keysLISTrequired

Outputs (1)

NameType
DICTDICT