project_open
Restore a saved IC-CAP project by loading a .mdl file into a model slot, replacing its current contents after restart.
Instructions
Open a .mdl project file into the named model slot (IC-CAP's Open action reads the file over the target, destroying its previous contents). When the target model exists, a Save-As-No-Data checkpoint of its current contents is taken first and returned in the response. The file must exist and satisfy the workspace path policy (set ICCAP_MCP_ALLOW_EXTERNAL_FILES=1 to open from anywhere). Use this to restore a project after an IC-CAP restart.
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": {
"model_path": "<model_path>",
"file_path": "<file_path>"
},
"name": "project_open"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the .mdl project file; must satisfy the workspace path policy | |
| model_path | Yes | Target model slot, e.g. '/model_name' (contents are replaced by the file) |