biovia_insert_ole_into_docx
Embed editable BIOVIA Draw OLE objects into existing Word .docx files by replacing placeholders, filling table cells, or appending structures, reactions, and captions.
Instructions
Embed genuine editable BIOVIA Draw OLE objects (MDLDrawOLE.MDLDrawObject.1 — NOT plain pictures!) into ANY existing Word (.docx) document. Supports replacing placeholders like '{{biovia:aspirin}}', inserting into a specific table cell (table_index/row_index/col_index), or appending.
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": {
"input_docx_path": "<input_docx_path>",
"insertions": "<insertions>"
},
"name": "biovia_insert_ole_into_docx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | PNG preview supersampling scale 1..6 (default: 3). | |
| export_pdf | No | Also export updated .docx to .pdf via Word COM. | |
| insertions | Yes | ||
| style_preset | No | Optional BIOVIA Draw Journal Settings preset name (e.g. 'ACS Document', 'RSC Document', 'Wiley Document', 'Presentations'). | |
| hydrogen_mode | No | Implicit hydrogen display mode (default: 'HeteroOrTerminal'). | |
| input_docx_path | Yes | Path to existing .docx file. | |
| output_pdf_path | No | ||
| color_by_element | No | Color heteroatoms by element (default: false = publication black-and-white). | |
| output_docx_path | No | Optional output .docx path (defaults to overwriting input). | |
| show_stereo_labels | No | Show CIP R/S and E/Z stereochemistry labels on the rendered drawing. |