chemdraw_edit_document
Create an edited copy of a ChemDraw document by modifying atoms, bonds, and captions, then export the before/after versions and chemical diff.
Instructions
Make an edited COPY of one molecule with native before/after exports and chemical diff. Analyze first: use editing atom/bond IDs and source_token. Atom op: {kind:atom,id,element:S,hydrogens:1}; element optional, H count required. Bond op: {kind:bond,id,order:2}. Captions must explicitly replace, retain or null-remove every page text ID. Supports neutral main-group atom/H changes and plain nonaromatic bond orders; no insertions/deletions, charged/isotopic target edits, radicals, stereocentre edits or new alkene stereo. Coordinates preserved, no cleanup. Existing source untouched; final mapped chemistry, labels and coordinates verified after ChemDraw export. Visual review required.
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": {
"document_id": "<document_id>",
"output_dir": "<output_dir>",
"operations": "<operations>",
"captions": "<captions>",
"expected_source_token": "<expected_source_token>"
},
"name": "chemdraw_edit_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pixels | No | ||
| captions | Yes | ||
| operations | Yes | ||
| output_dir | Yes | ||
| document_id | Yes | ||
| expected_source_token | Yes |