document_autocrop
Crop away empty borders by trimming images to non-empty content, with an optional layer as the reference region.
Instructions
Autocrop the image to non-empty content, optionally using a specific layer as the reference drawable.
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": {
"session_id": "<session_id>"
},
"name": "document_autocrop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer_id | No | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||