Nodes/ComfyUI Griptape Nodes/Griptape Display: Dictionary
ComfyUI Node

Griptape Display: Dictionary

Look Inside the {{ key }} Dictionary Before It Hits Your Agent

By griptape-ai·Created 2 years ago·Updated about a year ago· 238
Griptape Display: Dictionary
  • INPUT
  • DICTIONARY
  • DICT

Griptape Display: Dictionary shows you the contents of a dictionary on the ComfyUI canvas. It's the dictionary-flavored version of the pack's display nodes: connect a DICT - typically the output of a Merge Dictionary or Key Value Pair - and the UI renders it so you can see exactly what keys and values are about to be used for template replacement. It's a debugging window, full stop.

What it's for

Dictionaries in this pack drive {{ key }} replacement on agent and task nodes. When a placeholder isn't being filled, the fastest diagnosis is "what keys are actually in the dict?" - and this node answers it without guessing. Wire the Merge Dictionary output here, run the workflow, and you'll see whether your keys match the placeholders in your prompt. It's the same inspection idea as Display Data as Text, but shaped for dict-shaped data.

There's a second, lazier mode: if you don't have a dict handy, you can type a dictionary directly into the DICTIONARY field (typed as MARKDOWN) and it renders that. So it doubles as a quick manual viewer.

How it works

Two inputs, two paths:

if INPUT is not None:
    return {"ui": {"INPUT": str(INPUT)}, ...}
else:
    return {"ui": {"DICTIONARY": str(DICTIONARY) ...}, ...}

If a DICT is connected to INPUT, that's what displays. Otherwise the DICTIONARY markdown field is used. Either way the value is stringified for display, and the same value passes out the DICT output if you want to keep it in the graph.

Inputs and output

  • INPUT (DICT) - the dictionary to display, connected from Merge Dictionary or a Key Value Pair.
  • DICTIONARY (MARKDOWN, multiline) - fallback: type a dict here to view it manually.
  • Output: DICT - the displayed value, passed through.

Installation

Part of ComfyUI Griptape Nodes:

  • ComfyUI Manager: search "Griptape" → install.
  • Manual: cd ComfyUI/custom_nodes && git clone https://github.com/griptape-ai/ComfyUI-Griptape, restart ComfyUI.

Gotchas

  • If both INPUT and DICTIONARY are set, INPUT wins silently. Don't wonder why your typed dict isn't showing - it's the connected one being displayed.
  • It displays the stringified repr, not a formatted key-value table. Readable, but don't expect pretty Markdown rendering of the connected dict.

For anyone fighting {{ placeholder }} replacement, this is the node that turns "why isn't it working" into "oh, the key is misspelled" in one run.

CategoryGriptape/Display

Inputs (2)

NameTypeDefaultDescription
INPUToptDICT
DICTIONARYoptMARKDOWN

Outputs (1)

NameTypeDescription
DICTDICT