generate_image
Generate an image from a text prompt with specified theme, size, and optional negative prompt for document creation projects.
Instructions
Generate a single image via the ComfyUI MCP server and return its local path.
Args:
prompt: Base image description.
theme: Theme whose image_style is appended for consistency.
size: Output size, e.g. "1024x1024".
negative_prompt: Optional negative prompt.
target: "content" or "background".
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": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | 1024x1024 | |
| theme | No | dark_tech | |
| prompt | Yes | ||
| target | No | content | |
| negative_prompt | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |