chemdraw_annotate_document
Add native electron-flow curves (full or fishhook) to a ChemDraw document copy, preserving the source file. Outputs before/after CDXML, SVG, and PNG for visual review.
Instructions
Add native full or fishhook electron-flow curves to a NEW copy. Inspect annotations first. Each arrow has unique key, electrons 2 or 1, source {kind:symbol,id} for a displayed CircleMinus/LonePair (2 electrons) or Electron dot (1 electron), OR source {kind:bond,id,offset:[dx,dy]} for a donating bond. Atom-label sources and positive-charge donors are rejected; add a symbol first if needed. Target {kind:atom|bond,id,offset:[dx,dy]}; controls:[[dx1,dy1],[dx2,dy2]] relative to start/end; optional fishhook_side left/right only for one electron. Symbol targets rejected. A negative charge may represent a donating lone pair, but this is caller-supplied chemical intent, not inferred for every anion. Existing molecules/symbols retained; no chemical/radical-state edits. New absolute output directory, native CDXML/SVG/PNG before/after, recipe and audit. Source untouched. Visual review required; no whole-path collision or native moving attachment promise. Native errors not retried.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arrows | Yes | ||
| pixels | No | ||
| line_width | No | ||
| output_dir | Yes | ||
| document_id | Yes | ||
| expected_source_token | Yes |