transform_image
Transform an existing image into a new version by describing the desired change in a text prompt. Supply an image path or base64 input, adjust strength, and get a locally generated result.
Instructions
Transform an existing image using a text prompt (img2img). Either image_path or image_base64 must be provided.
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": "transform_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Random seed for reproducibility (-1 for random) | |
| steps | No | Number of inference steps (default: 20) | |
| prompt | Yes | Text description of the desired transformation | |
| cfg_scale | No | Classifier-free guidance scale (default: 7.5) | |
| image_path | No | Path to the source image file to transform | |
| output_path | No | Custom file path to save the transformed image | |
| image_base64 | No | Base64-encoded source image (alternative to image_path) | |
| negative_prompt | No | Elements to exclude from the transformed image | |
| denoising_strength | No | Strength of the transformation (0.0-1.0, default: 0.75). Lower values keep more of the original image. |