Draw molecule
draw_moleculeDraw a clean inline 2D structure of one molecule and highlight key atoms or groups so explanations of functional groups, stereochemistry, or reactivity are easy to follow.
Instructions
Show a clean 2D structure of ONE molecule inline in the explanation. Call it when the explanation refers to a specific molecule's structure (functional groups, protecting groups, stereochemistry, why it reacts as it does). Put each figure next to the paragraph about that molecule: when comparing two molecules, draw the first, explain it, then draw the second and explain it; do not draw both first. When the text is about part of the molecule (a group, an atom, a bond), highlight that part with highlights so the reader sees what the sentence refers to. If the user selected atoms in a card, redraw from the atom-mapped SMILES they sent and highlight those atom numbers. For a reaction or mechanism step use draw_reaction_step instead. Do not call it for trivial species (H2O, HCl) or purely conceptual answers. If the tool reports invalid SMILES, fix the SMILES and call again.
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": {
"smiles": "<smiles>"
},
"name": "draw_molecule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Short caption shown under the structure, in the user's language (e.g. 'R–O–TBS 硅醚'). | |
| smiles | Yes | SMILES of the molecule. Use '*' for a generic substituent R. Write stereochemistry (@, @@, /, \) only when it matters for the explanation. | |
| highlights | No | Optional coloured halos that point at what the explanation talks about, e.g. [{"smarts": "C=O", "color": "red"}] for the carbonyl, or [{"atoms": [1], "color": "blue"}] for the atom written [NH2:1] in the SMILES. Use 1–2 colours; highlight only what the next sentences discuss. Atom-map numbers are not drawn. |