text_to_image | Generate an image from a text prompt. After generation, you can use the show_image tool to view the thumbnail.
Args:
prompt: Text prompt for generating an image (maximum 1024 characters)
negative_prompt: Text prompt for excluding attributes from generation (maximum 1024 characters)
height: Image height (pixels)
width: Image width (pixels)
num_images: Number of images to generate (maximum 4)
cfg_scale: Image matching degree for the prompt (1-20)
seed: Seed value for image generation
open_browser: Whether to open the image in the browser after generation
Returns:
Dict: Dictionary containing the file path of the generated image and the thumbnail image |
inpainting | Inpaint a specific part of an image using a text mask prompt.
Args:
image_path: File path of the original image
prompt: Text prompt for the area to be inpainted
mask_prompt: Text prompt for specifying the area to be masked (e.g., "window", "car")
negative_prompt: Text prompt for excluding attributes from generation
height: Output image height (pixels)
width: Output image width (pixels)
cfg_scale: Image matching degree for the prompt (1-20)
open_browser: Whether to open the image in the browser after generation
Returns:
Dict: Dictionary containing the file path of the inpainted image |
outpainting | Expand the image to create an outpainting.
Args:
image_path: File path of the original image
mask_image_path: File path of the mask image
prompt: Text describing the content to be generated in the outpainting area
negative_prompt: Text specifying attributes to exclude from generation
outpainting_mode: Outpainting mode (DEFAULT or PRECISE)
height: Output image height (pixels)
width: Output image width (pixels)
cfg_scale: Prompt matching degree (1-20)
Returns:
Dict: Dictionary containing the file path of the outpainted image |
image_variation | Generate a new variation of the input image while maintaining its content.
Args:
image_paths: List of file paths of the original images (1-5)
prompt: Text for generating a variation image (optional)
negative_prompt: Text specifying attributes to exclude from generation
similarity_strength: Similarity between the original image and the generated image (0.2-1.0)
height: Output image height (pixels)
width: Output image width (pixels)
cfg_scale: Prompt matching degree (1-20)
Returns:
Dict: Dictionary containing the file path of the variation image |
image_conditioning | Generate an image that follows the layout and composition of a reference image.
Args:
image_path: File path of the reference image
prompt: Text describing the image to be generated
negative_prompt: Text specifying attributes to exclude from generation
control_mode: Control mode (CANNY_EDGE, etc.)
height: Output image height (pixels)
width: Output image width (pixels)
cfg_scale: Prompt matching degree (1-20)
Returns:
Dict: Dictionary containing the file path of the generated image |
color_guided_generation | Generate an image using a specified color palette.
Args:
prompt: Text describing the image to be generated
colors: List of color codes (1-10 hex color codes, e.g., "#ff8080")
reference_image_path: File path of the reference image (optional)
negative_prompt: Text specifying attributes to exclude from generation
height: Output image height (pixels)
width: Output image width (pixels)
cfg_scale: Prompt matching degree (1-20)
ctx: MCP context
Returns:
Dict: Dictionary containing the file path of the generated image |
background_removal | Remove the background of an image automatically.
Args:
image_path: File path of the original image
ctx: MCP context
Returns:
Dict: Dictionary containing the file path of the image with the background removed |
show_image | Create a thumbnail of the image and return it. The maximum size is 1048578.
Supports URLs or local file paths.
Args:
image_path: Image URL or local file path
width: Output image width (pixels)
height: Output image height (pixels)
Returns:
Image: Thumbnail image |