ms_create_molecule
Create a molecule or crystal document from explicit atoms and bonds, with optional bond orders.
Instructions
Create a standalone molecule/crystal document from explicit atoms and bonds using MaterialsScript. For the already-open GUI project, prefer ms_gui_create_current to avoid duplicate GUI documents.
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": {
"documentName": "<documentName>",
"atoms": "<atoms>"
},
"name": "ms_create_molecule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| atoms | Yes | ||
| bonds | No | ||
| project | No | ||
| documentName | Yes |