$ cat node-template.py
P
Preview
// Preview any node's output. Connect an output to the value input and run: the node shows the value inside itself (expandable to a full-content dialog) and echoes it unchanged to its own value output so you can keep chaining. Accepts any type; non-text values are rendered as formatted JSON.
Control
Utility
#preview#inspect#debug#display#view#echo#passthrough#utility
template.py
1"""Preview — echo the input value unchanged.23The node exists for its card UI: the frontend renders the executed value as4an in-node preview (with an expandable full-content dialog) when5data.templateId matches PREVIEW_TEMPLATE_ID. The code itself is a pure6pass-through so the previewed value stays chainable downstream.7"""8import json9import sys101112def main():13 try:14 raw = json.loads(sys.stdin.read() or "{}")15 inputs = raw.get("inputs", {}) if isinstance(raw, dict) else {}16 print(json.dumps({"value": inputs.get("value")}))17 except Exception as e:18 print(19 json.dumps({"error": str(e), "errorType": type(e).__name__}),20 file=sys.stderr,21 )22 sys.exit(1)232425if __name__ == "__main__":26 main()$ git log --oneline
v1.0.0
HEAD
2026-08-18