style_tree
Style phylogenetic trees with full FigTreeKit parameters and export FigTree-compatible Nexus files, returning reproducible CLI commands and config for each operation.
Instructions
Style a tree with the full FigTreeKit parameter surface and export a
FigTree-compatible Nexus file. Returns the file, an
equivalent cli_command and a config_json for byte-for-byte
reproducibility, plus per-operation records.
Execution order mirrors the CLI: plain clade annotations (highlight /
color / font / clear) → taxonomy auto-color / collapse-rank → collapse
operations. --color-all is a global CLI switch, so mixing
color and color_all operations cannot be represented exactly on
the command line (the command colors every listed clade).
Multi-tree files: multi_tree="first"|"last"|"random" style one tree
and export only that tree (CLI parity); pass seed to make
random reproducible. split/all cannot be reproduced by a
single MCP artifact (the CLI writes one file per tree), so the selected
tree is styled while all trees are preserved, and an explicit
warnings entry is returned.
Args: See the mapped parameter table in docs/tools_reference_EN.md; every argument is optional (unspecified = figtreekit default).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| zoom | No | ||
| order | No | ||
| layout | No | ||
| legend | No | ||
| rooted | No | ||
| root_age | No | ||
| run_name | No | ||
| unrooted | No | ||
| curvature | No | ||
| expansion | No | ||
| scale_bar | No | ||
| table_sep | No | ||
| transform | No | ||
| tree_file | No | ||
| multi_tree | No | ||
| operations | No | ||
| scale_axis | No | ||
| tip_labels | No | ||
| tree_index | No | ||
| label_color | No | ||
| node_labels | No | ||
| root_length | No | ||
| branch_width | No | ||
| rooting_type | No | ||
| scale_factor | No | ||
| tree_content | No | ||
| branch_labels | No | ||
| collapse_rank | No | ||
| radial_spread | No | ||
| collapse_style | No | collapse | |
| auto_color_rank | No | ||
| legend_position | No | ||
| selection_color | No | ||
| taxonomy_levels | No | ||
| align_tip_labels | No | ||
| background_color | No | ||
| foreground_color | No | ||
| additional_config | No | ||
| scale_axis_reverse | No | ||
| tip_label_font_name | No | ||
| tip_label_font_size | No | ||
| scale_axis_font_size | No | ||
| tip_label_font_style | No | ||
| taxonomy_mapping_file | No | ||
| branch_color_attribute | No | ||
| node_display_attribute | No | ||
| taxonomy_delimiter_mode | No | ||
| branch_display_attribute | No | ||
| polar_root_angle_degrees | No | ||
| polar_angular_range_degrees | No | ||
| scale_axis_significant_digits | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |