expand_image_to_square
Convert any image to a 1:1 square by filling border areas with AI-matched background, preserving original content and perspective. Outputs a 1024x1024 WebP.
Instructions
Convert any aspect ratio to 1:1 square by intelligently filling border areas while preserving original content pixel-perfect. AI matches background style (solid/gradient/textured/environmental), continues lighting and perspective with seamless blending. Outputs 1024x1024 WebP with AI review.
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_path": "<input_path>"
},
"name": "expand_image_to_square"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | Local file path or URL to the image to expand (e.g., '/path/to/image.jpg' or 'https://example.com/image.jpg') |