분자 구조식 그리기
render_moleculeDraw molecules or reactions from SMILES strings to generate SVG, PDF, or PNG images with preview, formula, and molecular weight for verification.
Instructions
Draw a molecule or reaction from SMILES (not a name): SVG/PDF/PNG, preview, formula, molecular weight. Reaction: reactants>>products. Example: {"smiles": "CC(=O)Oc1ccccc1C(=O)O", "legend": "aspirin"} Check that formula and mol_weight match the intended molecule. On failure: errors point at the atom (#index, ^); fix the SMILES there and call again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | molecule | |
| name | No | File name | |
| legend | No | Caption under the drawing | |
| smiles | Yes | SMILES; reaction: reactants>>products | |
| show_atom_numbers | No |