save_image
save_imageSave an image view to disk in XISF, FIT, TIFF, PNG, or JPG format, with optional bit depth. Output is restricted to the work directory to protect source files.
Instructions
Save a view to disk. Format by extension: .xisf (lossless, recommended), .fit, .tif, .png, .jpg. bit_depth 8/16 for tif/png. Output must be under the workdir (never in source folders).
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": {
"id": "<id>"
},
"name": "save_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| path | No | Default: <session>/work/<id>.xisf | |
| format | No | ||
| bit_depth | No | ||
| overwrite | No |