render_tree
Render Nexus files or Newick/Nexus tree content to PNG, PDF, SVG, or JPEG using FigTree, returning file paths and an optional base64 preview.
Instructions
Render a Nexus file (or tree content) to PNG/PDF/SVG/JPEG via the patched FigTree JAR; returns paths plus an optional base64 data URI preview. Applies background/foreground/label colour post-processing for raster formats.
Args: nexus_file: Path to a Nexus file (whitelisted; takes precedence). tree_content: Newick/Nexus content rendered through a base export. format: PNG|PDF|SVG|JPEG (default PNG). width: Image width in pixels. height: Image height in pixels. background_color: #RRGGBB background (raster post-process). foreground_color: #RRGGBB foreground (raster post-process). label_color: #RRGGBB protected label colour. jar_path: Explicit figtree_patched.jar path (default: app config / auto-detection). timeout: Max seconds for the JVM render call (default: app.render_timeout, normally 180). run_name: Optional artifact base name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | ||
| format | No | ||
| height | No | ||
| timeout | No | ||
| jar_path | No | ||
| run_name | No | ||
| nexus_file | No | ||
| label_color | No | ||
| tree_content | No | ||
| background_color | No | ||
| foreground_color | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |