pi_run_pjsr
pi_run_pjsrRun arbitrary PixInsight JavaScript (PJSR) directly in the active instance to execute custom processing or return JSON results, enabling advanced automation beyond predefined operations.
Instructions
Escape hatch: run arbitrary PJSR (PixInsight JavaScript) inside the warm PixInsight instance. Assign result = ... to return JSON. Helpers: PIMCP.win.view(id), PIMCP.stf, PIMCP.preview.render(view,{out_path}), PIMCP.K.{GRAY,RGB,REAL,INTEGER,NOSWAP} (macros are not visible to eval). Gated by config allowRawScripts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ||
| timeout_ms | No | ||
| script_args | No |