batch_merge_models
Merge a base model with multiple target models in one batch operation, choosing merge methods and alpha strength, and wait for completion.
Instructions
Merge a base model with multiple target models in batch. Waits for completion.
Args:
model_type: Model architecture — "sd15" or "sdxl"
base_model: Base model checkpoint filename
target_models: List of target model checkpoint filenames
method: Merge method — "linear", "slerp", "additive", or "subtract"
alpha: Merge strength (0.0-1.0)
output_subdir: Output subdirectory name for merged models
preserve_metadata: Whether to preserve model metadata
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": {
"model_type": "<model_type>",
"base_model": "<base_model>",
"target_models": "<target_models>"
},
"name": "batch_merge_models"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alpha | No | ||
| method | No | linear | |
| base_model | Yes | ||
| model_type | Yes | ||
| output_subdir | No | batch_merged | |
| target_models | Yes | ||
| preserve_metadata | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |