nina_camera_capture
Capture a single exposure with configurable duration, gain, and image type, with options to save, plate-solve, or stream the result.
Instructions
Capture a single exposure.
duration: exposure length in seconds. gain: camera gain; omit to use the camera's current/default gain. save: whether to save the resulting image to disk. target_name: subfolder/name association for the saved file, if any. image_type: e.g. "LIGHT", "DARK", "FLAT", "BIAS" (NINA's own image type strings); omit to use the current default. solve: plate-solve the resulting image. wait_for_result: block until the exposure (and any requested download/processing) finishes. only_await_capture_completion: return as soon as the exposure itself finishes, without waiting for download/processing -- use with wait_for_result=True. get_result: include image statistics/metadata in the response. omit_image: don't include the actual image data (base64) in the response -- keep this True unless you specifically want the pixel data returned inline, since it can be large. resize / size / quality / scale: control a resized preview image if omit_image=False (size like "1920x1080", quality 1-100). stream: stream the image back as it's captured rather than after. only_save_raw: save only the raw sensor data, skipping NINA's normal processing pipeline. skip_auto_stretch: skip auto-stretch when producing a preview image.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gain | No | ||
| save | No | ||
| size | No | ||
| scale | No | ||
| solve | No | ||
| resize | No | ||
| stream | No | ||
| quality | No | ||
| duration | Yes | ||
| get_result | No | ||
| image_type | No | ||
| omit_image | No | ||
| target_name | No | ||
| only_save_raw | No | ||
| wait_for_result | No | ||
| skip_auto_stretch | No | ||
| only_await_capture_completion | No |