画像を生成する
generate_imageGenerates a PNG from a text prompt and returns the saved path. For avatar bases, request a flat background, no shadows or gradients, and a front-facing view.
Instructions
プロンプトから画像を生成し、ファイルに保存してパスを返す(base64は返さない)。アバターの土台を作る用途では、背景を単色に・影とグラデーションを禁止・正面向きと明示すると後段の合成が楽になる。
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": {
"prompt": "<prompt>",
"out_path": "<out_path>"
},
"name": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | 1024x1024 / 1024x1536 / 1536x1024 / auto | 1024x1024 |
| model | No | 既定 gpt-image-2 | gpt-image-2 |
| prompt | Yes | 生成の指示。日本語で可 | |
| out_path | Yes | 保存先のパス(.png) |