Save Merit Function File
zemax_save_merit_function_fileSave the current merit function to a specified .MF file path, preserving optimization criteria for reuse, backup, or transfer between Zemax OpticStudio sessions.
Instructions
Save the merit function to a .MF file.
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": {
"filePath": "<filePath>"
},
"name": "zemax_save_merit_function_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute .MF file path |