rotate_image
Rotate images by a specified angle in degrees to adjust orientation or create visual effects. Supports counter-clockwise rotation with optional canvas expansion.
Instructions
Rotate an image by a specified number of degrees.
Args: path: Absolute path to the image file. degrees: Rotation angle in degrees (counter-clockwise). expand: If True, expand the output to fit the full rotated image. output_path: Where to save. Defaults to _rotated..
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>",
"degrees": "<degrees>"
},
"name": "rotate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| degrees | Yes | ||
| expand | No | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||