crop_image
Trim pixels from an image's edges in place by specifying amounts per side. All-zero amounts leave the image unchanged; cropping removes its astrometric solution.
Instructions
Crop pixels off the edges of an image, in place. Amounts are pixels to remove from each side. All four amounts 0 (or omitted) runs nothing and leaves the image, and its astrometric solution, unchanged. Crop runs with noGUIMessages, so PixInsight writes its warnings to the Process Console instead of opening a confirmation dialog. A crop deletes the image's astrometric solution (PixInsight behaviour); the result says when one was removed.
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": {
"view_id": "<view_id>"
},
"name": "crop_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Pixels to remove from the top edge | |
| left | No | Pixels to remove from the left edge | |
| right | No | Pixels to remove from the right edge | |
| bottom | No | Pixels to remove from the bottom edge | |
| view_id | Yes | View ID to crop |