ms_gui_apply_current
Modify the active GUI document in place by queuing a MaterialsScript body, for direct edits on the current molecule.
Instructions
Queue a MaterialsScript body that modifies the current GUI document in place. Use this for 'on this molecule...' edits.
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": {
"body": "<body>"
},
"name": "ms_gui_apply_current"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | MaterialsScript body. A variable named $doc is bound to the current target document. | |
| save | No | ||
| label | No | apply_current | |
| exportFile | No | ||
| ballAndStick | No | ||
| documentName | No |