ComfyUI Node: items

Class Name

Basic data handling: DictItems

Category
Basic/DICT
Author
StableLlama (Account age: 861days)
Extension
Basic data handling
Latest Updated
2026-05-07
Github Stars
0.04K

How to Install Basic data handling

Install this extension via the ComfyUI Manager by searching for Basic data handling
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Basic data handling in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

items Description

The DictItems node extracts and organizes key-value pairs from dictionaries for easy access and manipulation.

items:

The DictItems node is designed to facilitate the extraction of key-value pairs from a dictionary, providing a straightforward way to access and manipulate the contents of a dictionary in a structured format. This node is particularly useful when you need to iterate over or analyze the entries within a dictionary, as it returns the items in a format that is easy to work with. By using this node, you can efficiently handle dictionary data, making it an essential tool for tasks that involve data organization and retrieval. Its primary goal is to simplify the process of accessing dictionary contents, thereby enhancing your workflow when dealing with complex data structures.

items Input Parameters:

dict

The dict parameter represents the dictionary from which you want to extract the items. This input is crucial as it determines the source of the key-value pairs that will be returned by the node. The dictionary should be a valid Python dictionary, and its contents will directly influence the output of the node. There are no specific minimum or maximum values for this parameter, but it should be a well-formed dictionary to ensure accurate results.

items Output Parameters:

items

The items output parameter provides a list of tuples, where each tuple contains a key-value pair from the input dictionary. This output is significant because it allows you to access and manipulate the dictionary's contents in a structured manner. The list of tuples makes it easy to iterate over the dictionary entries, enabling you to perform various operations such as filtering, sorting, or transforming the data as needed.

items Usage Tips:

  • Use the DictItems node when you need to access all key-value pairs in a dictionary for further processing or analysis.
  • Combine this node with other nodes that can iterate over lists or tuples to perform operations on each key-value pair extracted from the dictionary.

items Common Errors and Solutions:

Invalid dictionary input

  • Explanation: This error occurs when the input provided is not a valid dictionary.
  • Solution: Ensure that the input is a properly formatted Python dictionary before passing it to the node.

Empty dictionary output

  • Explanation: If the input dictionary is empty, the output will be an empty list of items.
  • Solution: Verify that the input dictionary contains the expected data before using the node to extract items.

items Related Nodes

Go back to the extension to check out more related nodes.
Basic data handling
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

items