lib_remove_model
Removes model implementations from a SchLib component by name, with an option to keep one match and delete duplicate links.
Instructions
Remove models (implementations) from a SchLib component by name.
Removes every implementation whose ModelName equals model_name. With keep_one=True it keeps the first match and removes the rest, which deletes duplicate model links while preserving one. Errors if the component is not found; returns removed=0 if no model matches.
Args: component_name: the component's LibReference. model_name: the ModelName of the model(s) to remove. keep_one: keep the first match and remove the rest (dedup). library_path: optional .SchLib path; defaults to the focused lib.
Returns: {"success": true, "model_name": "...", "removed": N, "kept_one": bool}.
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": {
"component_name": "<component_name>",
"model_name": "<model_name>"
},
"name": "lib_remove_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keep_one | No | ||
| model_name | Yes | ||
| library_path | No | ||
| component_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||