export_image
Saves an image to a file in the allowed workspace output or state folder, with format and bit depth set by extension and options.
Instructions
Write an image to a file in the workspace's output or state folder. A relative file_path is resolved under /output; an absolute one must lie inside /output or the state folder (/agentic by default), and a path anywhere else is refused. Format comes from the extension: .tif/.tiff, .png, .jpg/.jpeg, .xisf, .fits. TIFF and PNG default to 16-bit, JPEG to 8-bit; use 32 for float. The working image is not changed. Missing parent folders are created.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bits | No | Sample depth for tif/png/xisf/fits (default 16 for tif/png, 32 otherwise) | |
| view_id | Yes | View ID to export | |
| file_path | Yes | Output file path: relative to <workspace>/output, or absolute inside <workspace>/output or the state folder |