Replace image
replace_imageReplaces a selected MIB2 skin image with a local PNG, JPEG, or WebP file, matching its size or applying fit modes; shared images update everywhere and stay unsaved until saved.
Instructions
Replaces one image of the skin with a picture file on this computer (PNG, JPEG or WebP), stored in the image's format. It must have the image's size (only ambient feature images may change size) unless fit is "fit", "fill" or "stretch". A shared image changes everywhere it is used. Unsaved until save; revert_image takes it back.
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": {
"file": "<file>"
},
"name": "replace_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | exact (default): as it is; fit: whole picture inside; fill: cover, cropping; stretch: distort to the size | |
| file | Yes | Path of the picture file on this computer | |
| path | No | Or a path from images.res, e.g. "0203070200/GenericCarAdjuster/AmbianceLight/Interior_LHD.png" | |
| index | No | The image index in images.mcf |