search_and_replace
Identify an object in an image and substitute it with another using descriptive prompts for search and replacement.
Instructions
Replace objects or elements in an image.
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": {
"image_path": "<image_path>",
"prompt": "<prompt>",
"search_prompt": "<search_prompt>"
},
"name": "search_and_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | What to replace with | |
| filename | No | Output filename | |
| image_path | Yes | Path to the image file | |
| output_dir | No | Override output directory | |
| search_prompt | Yes | What to find and replace |