Import a SCAPS file
scaps_import_fileAdd a shared SCAPS file to your installation: validates definitions and materials, then lists any referenced absorption, grading, or filter files that are missing.
Instructions
Add a SCAPS file someone shared (device .def, .material, .abs, spectrum, measurement...) to the installation.
Definitions and materials are parsed to confirm they are valid, and files they reference but that are missing (absorption, grading, filter) are listed.
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": {
"kind": "<kind>",
"name": "<name>",
"content": "<content>"
},
"name": "scaps_import_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | File type; decides the SCAPS folder. | |
| name | Yes | File name with its SCAPS extension, e.g. 'perovskite cell.def'. | |
| content | Yes | Full text of the file. | |
| overwrite | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| kind | Yes | ||
| summary | Yes | ||
| missing_references | Yes |