DJZ String Navigator V2
Browse every string hiding in a PNG's metadata
- selected_string
- string_length
- preview
ComfyUI PNGs are hoarders. One image's metadata can hold the positive prompt, the negative prompt, a system prompt, model names, seed strings, and assorted leftover junk from the workflow JSON. DJZ Prompt Extractor V2 dumps all of that as a ranked JSON list, and DJZ String Navigator V2 is the little helper node that lets you browse the list by position - the metadata equivalent of flipping through a deck of index cards.
What it's for
It's the companion to DJZ Prompt Extractor V2. That node's all_strings_json output is a JSON array where each entry has an index, a length, and a preview of the string. This node takes that JSON, applies an offset, and hands you back the selected entry's details. You chain them: extractor → String Navigator → whatever needs a text or number. It's a way to poke through what a file contains without re-opening it, and to drive other nodes with the string's length.
Inputs and outputs
Just two inputs, both required:
- all_strings_json - paste it in, or more usefully, wire it from the V2 extractor's
all_strings_jsonoutput. It's a plain multiline STRING. - offset - which entry to select, 1–100, default 1.
Three outputs: selected_string (the text at that offset), string_length (its character count, useful for logic or display), and preview (a status line telling you which string of how many you're looking at, with the length).
The catch you need to know
Read the code and you'll find the trap: the navigator works only with what's inside all_strings_json, and that JSON stores truncated previews, not full text. The extractor's previews are cut at 100 characters. So if the string you're browsing is longer than that, selected_string here is a preview with ... on the end, not the whole prompt. The author's own note in the source says the same thing: for full string access, use the main extractor. The navigator is for reconnaissance and for feeding lengths into other nodes - it is not a full-text source.
That shapes when you'd use it. If you need the actual prompt text, take it directly from the V2 extractor's selected_string. If you're auditing what a file contains, comparing string lengths, or building something that reacts to how long the prompt is, this node is a tidy way to get there without reopening the image.
Install
Same pack, same trivial install: ComfyUI Manager, search "DJZ Prompt Extractor", or cd ComfyUI/custom_nodes && git clone https://github.com/MushroomFleet/ComfyUI_PromptExtractor_nodes, then restart ComfyUI. No dependencies, no models - this is one of the lightest utilities in the pack, and it shows.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| all_strings_json | STRING | — | |
| offset | INT | 11–100 | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| selected_string | STRING | — |
| string_length | INT | — |
| preview | STRING | — |