Draw Molecule
draw_moleculeRender a molecule from SMILES inline in an interactive 3D viewer, showing stereochemistry and IUPAC numbering for chemistry analysis.
Instructions
Render a molecule from SMILES in the interactive MolTalk viewer, shown inline to the user (the drawing can be rotated in 3D). A successful result (rendered: true) is already on screen; its structuredContent holds the molecular analysis, stereochemistry and depicted_stereo_bonds (this drawing's wedges and dashes, each with an explanation). draw_named_molecule resolves a compound name and draws it in one call. label: display caption, such as the compound name; it is checked against MolTalk's library (label_check). numbering: "none" (default; the viewer can switch numbers on), "iupac" (locants from the verified IUPAC name when unambiguous, otherwise atom indices) or "indices". hydrogens=true displays every hydrogen. include_svg=true also returns the SVG, for clients without the viewer. IUPAC naming may query PubChem when the exact structure is not in MolTalk's bundled library.
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 | ||
| width | No | ||
| height | No | ||
| smiles | Yes | ||
| hydrogens | No | ||
| numbering | No | none | |
| include_svg | No | ||
| atom_indices | No |