save_image
Save the frontmost image to a specified file path using ImageJ's saveAs, with automatic parent directory creation. Supports formats like TIFF, PNG, and JPEG.
Instructions
Save the currently active image to disk using ImageJ's saveAs. Requires an image window to be frontmost in Fiji.
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": {
"path": "<path>"
},
"name": "save_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Destination path; parent directories are created if missing. | |
| format_hint | No | ImageJ saveAs format hint (tiff, png, jpeg, etc.). | tiff |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | Image written to disk. | |
| path | Yes | Output file path. | |
| title | Yes | Title of the image that was saved. | |
| format | Yes | Format hint passed to ImageJ saveAs (e.g. tiff, png). |