# =demo-tree — widget gallery: collapsible JSON TREE (canned data, no setup).
schema_version: 1
runtime: bridge
id: demo-tree
chip: demo-tree
title: "Demo · JSON tree"
icon: braces
description: "Sample API response as a collapsible JSON tree, canned data, zero setup."
placeholder_examples: ["Enter to load the demo JSON tree"]
emits: Generic
bridge:
  command:
    macos: "python3 {{scripts_dir}}/bolt-demo.py tree"
    linux: "python3 {{scripts_dir}}/bolt-demo.py tree"
    windows: "python {{scripts_dir}}/bolt-demo.py tree"
  parse: json
  timeout_seconds: 5
presentation:
  widget: list
  title_field: title
  subtitle_field: subtitle
  right_widget:
    kind: json_tree
    mode: selected_row
    bind:
      source: data
actions:
  - { id: copy, kind: composer, target: row, label: Copy, insert: "{{title}}" }
