楕円マスクを作る
make_maskBuilds an elliptical mask PNG for targeted edits (mouth, eyes) using normalized coordinates (0-1) relative to a reference image. Define left, top, right, bottom ratios to specify the edit region.
Instructions
編集したい領域(口・目など)を楕円で指定したマスクPNGを作る。座標は画像サイズに対する比率(0〜1)で渡す。例: 口 = left 0.40 / top 0.455 / right 0.60 / bottom 0.575、目 = 0.34 / 0.32 / 0.66 / 0.42。
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": {
"like_path": "<like_path>",
"out_path": "<out_path>",
"left": "<left>",
"top": "<top>",
"right": "<right>",
"bottom": "<bottom>"
},
"name": "make_mask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | Yes | ||
| left | Yes | ||
| right | Yes | ||
| bottom | Yes | ||
| out_path | Yes | 保存先のパス(.png) | |
| like_path | Yes | このファイルと同じサイズで作る |