Draw a reaction scheme
generate_reactionDraw reaction schemes from IUPAC names or SMILES, reactants, products, conditions, and arrow labels, and export PNG/SVG files for reaction explanations or explicit drawing requests.
Instructions
Draw a reaction scheme from reactants, products and conditions.
Writes PNG/SVG files and returns a panel with conditions above and below the arrow. arrow: "forward" (→), "equilibrium" (⇌, reversible) or "retro" (⇒). Use it when explaining a reaction as well as for explicit drawing requests. Pass English or IUPAC compound names, or SMILES.
Not this tool for: the step-by-step SN1, SN2 or Fischer esterification mechanism with electron-flow arrows (use generate_mechanism); a TLC plate sketch from Rf values, even of a reaction mixture (use generate_tlc); one compound or a property of one compound such as its acidity (use generate_molecule), independent structures (use batch_generate), or structural differences (use compare_molecules).
Curved-arrow mechanisms are drawn only for SN1, SN2 and Fischer esterification (generate_mechanism). For any other mechanism, such as Diels–Alder, draw the net scheme here and tell the user that the arrow mechanism is not drawn.
Args: reactants: English/IUPAC reactant names or SMILES. products: English/IUPAC product names or SMILES. conditions: Text above the arrow (e.g. 'H2SO4, 0-5 °C'); formula digits are subscripted. conditions_below: Text under the arrow (e.g. 'reflux, 2 h'). arrow: "forward" (→), "equilibrium" (⇌) or "retro" (⇒, target as reactants, precursors as products). name: Display name (can be localized). formats: Any of "png", "svg", "cdxml" (default png + svg); "cdxml" only for editing in ChemDraw. abbreviate_groups: True draws common substituents as labels (Ph, OAc, tBu …); the CDXML keeps full structures. render_style: "" standard · "compact" small print · "presentation" slides · "grayscale" b/w palette. coefficients: One integer per species, reactants then products ([2, 1, 2] draws 2 H2 + O2 → 2 H2O). Set only when the user asks for a balanced equation; otherwise draw as given — the panel's "Apply coefficients" button sets them.
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": {
"reactants": "<reactants>",
"products": "<products>"
},
"name": "generate_reaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| arrow | No | forward | |
| formats | No | ||
| products | Yes | ||
| reactants | Yes | ||
| conditions | No | ||
| coefficients | No | ||
| render_style | No | ||
| conditions_below | No | ||
| abbreviate_groups | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| type | No | reaction | |
| arrow | No | forward | |
| files | No | ||
| balance | No | ||
| request | No | ||
| products | No | ||
| reactants | No | ||
| cdxml_path | No | ||
| conditions | No | ||
| coefficients | No | ||
| conditions_below | No |