Bild bearbeiten
image_editCrop, rotate, or flip images in WordPress using the Image Editor API.
Instructions
Bearbeitet ein Bild (Zuschneiden, Drehen, Spiegeln) - nutzt WordPress Image Editor API
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": {
"mediaId": "<mediaId>",
"action": "<action>"
},
"name": "image_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Bearbeitungsaktion | |
| mediaId | Yes | Media/Attachment ID | |
| cropData | No | Zuschnitt-Daten (nur für crop) | |
| rotateAngle | No | Drehwinkel (nur für rotate) | |
| applyToSizes | No | Bildgrößen zum Anwenden (oder "all") | |
| flipDirection | No | Spiegelrichtung (nur für flip) |