export_newick
Export a reconstructed phylogenetic tree to a Newick string, with options to include branch lengths and node names.
Instructions
Export a reconstructed tree to a Newick string.
Args: dataset_id: Dataset handle. tree_key: Which tree in tdata.obst to export. record_branch_lengths: Include branch lengths in the Newick. record_node_names: Include internal node names in the Newick.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dataset_id": "<dataset_id>",
"tree_key": "<tree_key>"
},
"name": "export_newick"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tree_key | Yes | ||
| dataset_id | Yes | ||
| record_node_names | No | ||
| record_branch_lengths | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| newick | Yes | ||
| tree_key | Yes | ||
| dataset_id | Yes |