dm_run_script
Runs DM-Script inside DigitalMicrograph to invoke native algorithms such as filtering, drift correction, EELS/EDS quantification, SI processing, and batch macros, then reports newly created or deleted image IDs for follow-up quantification.
Instructions
在 DM 内执行 DM-Script(等价于脚本窗口)。用于调用 DM 原生算法:滤波、漂移校正、EELS/EDS 定量、SI 处理、批量宏等。执行后会自动比对图像集合,报告新产生/被删除的图像 id,便于接着用其它工具量化。默认关闭,需环境变量 DM_MCP_ALLOW_DMSCRIPT=1。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | 完整 DM-Script 源码 | |
| expect_new_image | No | 声明该脚本应当产生新图像;若没有则返回 warning |