main_save
Save IC-CAP projects or models to disk. Use Save As with a destination filename to write into the MCP workspace; file creation is verified on the file system.
Instructions
Save an IC-CAP object to disk. For Save As, arg is the destination filename: a bare name is written into the MCP workspace, an absolute path must satisfy the workspace path policy (see ICCAP_MCP_ALLOW_EXTERNAL_FILES); .mdl is appended when missing. The result is verified against the file system and reports file_exists/file_size - success means the file is actually on disk. Use locator='/' for the full project or a model path for one model.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arg | No | For Save As: destination filename (bare name resolves into the MCP workspace; absolute paths follow the workspace path policy). Save takes no arg. | |
| action | No | Save As | |
| locator | Yes | Object locator. Use '/' for full project or '/model_name' for a specific model. | / |