Nodes/ComfyUI-MakkiTools/show_type(mki-数据类型显示)
ComfyUI Node

show_type(mki-数据类型显示)

This Tiny Node Tells You What ComfyUI Is Actually Passing You

By MakkiShizu·Created about a year ago·Updated 7 months ago· 9
show_type(mki-数据类型显示)
  • anything
  • STRING

Somewhere in every ComfyUI journey there's a moment when a node refuses a wire or throws expected X, got Y, and you have no idea what shape the thing on the other end of that cable actually is. show_type(mki-数据类型显示) exists for exactly that moment. You drag it out, plug the mystery output into its single input, run the queue, and it prints the real Python type - str, int, float, list, dict, tensor, numpy.ndarray - right on the node.

Why this is worth having: the ecosystem leans hard on *-typed "any" inputs. JSON parsing, API-call, and "anything anywhere"-style nodes all accept whatever you throw at them, and the KB notes the community has literally argued about how much those hurt debuggability. Any-type wiring is convenient until it isn't - a node that accepts anything often behaves differently depending on what actually arrives. This node is the anti-anything-anywhere: it tells you the truth about a connection instead of hiding it.

How it works. The whole mechanism is one line of Python: type(anything).__name__.lower(). The input is declared with an AlwaysEqualProxy("*"), which tells ComfyUI "accept any wire type," and the pack's frontend extension renders the result into a multiline "info" box right on the node. It's marked as an output node, so it displays its finding without blocking the rest of your graph.

The inputs that matter. There's exactly one: anything (optional, any type). The output is a single STRING containing the type name. That's the entire node, and that's the point - there's nothing to configure, which makes it a better debugging tool than anything you'd have to fiddle with.

Install. It ships in the MakkiTools pack, which has no heavy dependencies - the three requirements are all for the pack's translation nodes, not this one:

cd ComfyUI/custom_nodes
git clone https://github.com/MakkiShizu/ComfyUI-MakkiTools
cd ComfyUI-MakkiTools
# Windows portable:
..\..\..\python_embeded\python.exe -m pip install -r requirements.txt
# venv/conda - activate your env first:
pip install -r requirements.txt

Or skip the terminal: search "ComfyUI-MakkiTools" in ComfyUI Manager and click install. Restart ComfyUI either way so the frontend extension loads.

Where people get tripped up. An IMAGE wire arrives as a torch tensor, so expect tensor (a batch is still one tensor - don't panic that "it's not a list"). A text widget shows str. If you're checking a node whose output type is *, remember ComfyUI delivers whatever the node actually returns, so this is the ground truth. It always executes on every queue pass - it's a debug tool, so bypass it once you've got your answer, and maybe don't leave it in workflows you share. If the result box never appears, you didn't restart after installing, and the pack's JS never loaded.

CategoryMakkiTools

Inputs (1)

NameTypeDefaultDescription
anythingopt*Input of any type to show its type 任意类型的输入以显示其类型

Outputs (1)

NameTypeDescription
STRINGSTRING