mm_generate_image
Generate an image from a text prompt, customize size, and receive the absolute file path of the saved output.
Instructions
根据文字提示生成图片并保存。
Args: prompt: 图片内容描述。 size: 画幅,支持 1024x1024 / 768x1344 / 1344x768。 output_path: 可选保存路径(默认 outputs/images/)。
Returns: str: 生成的图片文件绝对路径。
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>"
},
"name": "mm_generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | 1024x1024 | |
| prompt | Yes | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |