Draw a reaction scheme
render_reactionDraw a reaction scheme from its parts: reactants joined by plus signs, an arrow with optional text above and below, then products. Each structure is SMILES, InChI or a molfile. For a reaction already written as reaction SMILES, use draw. Refused, with the reason, instead of drawn wrongly: SMILES that cannot be read, aromatic rings that cannot alternate single and double bonds, and atoms with too many bonds (unless as_written). The result carries drawing (Lone Pair JSON to pass to edit_drawing or back in as input) and notes (anything changed on reading or lost in the format).
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": "render_reaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | PNG resolution, 300 by default; 600 for print. | |
| above | No | Text above the arrow: reagents or catalyst. Digits after letters become subscripts (H2SO4). | |
| below | No | Text below the arrow: solvent, temperature, time. | |
| style | No | Journal style. acs = ACS Document 1996 (default), rsc = RSC, nature = Nature Reviews, slides = heavier lines for slides. | |
| format | No | png (default; returned as an image), svg (returned as text), pdf or eps (returned as base64 in `data_base64`). | |
| opaque | No | White background instead of transparent (SVG, PNG). Default false. | |
| products | Yes | Structures right of the arrow. | |
| reactants | Yes | Structures left of the arrow. | |
| as_written | No | Draw atoms that have too many bonds instead of refusing the structure. Default false. |