auto_crop
Automatically crop images to remove unwanted borders, whitespace, or solid backgrounds. Specify input, output, and optional threshold or background color.
Instructions
Automatically crop image to remove borders, whitespace, or solid color backgrounds
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": {
"input": "<input>",
"output": "<output>"
},
"name": "auto_crop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Input image path or URL | |
| output | Yes | Output file path | |
| threshold | No | Color similarity threshold (0-100, default 10) | |
| backgroundColor | No | Background color to detect and remove (e.g., "#ffffff", "transparent") |