Run a SCAPS script
scaps_run_scriptRun custom SCAPS scripts for workflows like curve fitting, loops, math, and tandem simulations. Validates commands against the installed SCAPS and collects saved results into the run.
Instructions
Run a SCAPS script for workflows beyond the other tools: recorder, curve fitting, math, loops, tandem.
The server prepends quit and error-log settings and 'clear all'. Commands are checked against the installed SCAPS; file names must be bare; system commands are rejected. Results saved with 'save results. name' are collected into the run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | SCAPS script text, one command per line. | |
| timeout_s | No | Override SCAPS_TIMEOUT. | |
| wait_seconds | No | Wait this long for the result; longer runs continue as a job. | |
| validate_only | No | Only check the script and report problems. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| run_id | Yes | ||
| status | Yes | ||
| seconds | Yes | ||
| problems | Yes | ||
| progress | Yes | ||
| warnings | Yes | ||
| scaps_errors | Yes |