summarize_tree
Parse Newick or Nexus trees to report format, counts, root state, branch stats, and optional tip labels; selects multi-tree inputs via first, last, random, split, or all.
Instructions
Parse and summarize a tree: format, counts, root state, branch stats.
Never fails on validation issues (use validate_tree for that); a
multi-tree file without an explicit selection yields a multi_tree_hint
instead of an error.
Args: tree_content: Newick/Nexus content. tree_file: Path to a tree file inside an allowed read root. include_tip_labels: Include the tip-label preview. tip_labels_limit: Max number of preview labels (1..10000). multi_tree: first|last|random|split|all selection for multi-tree Nexus. tree_index: 0-based index into a multi-tree Nexus.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tree_file | No | ||
| multi_tree | No | ||
| tree_index | No | ||
| tree_content | No | ||
| tip_labels_limit | No | ||
| include_tip_labels | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |