lib_set_model_name
Set a SchLib symbol’s footprint model reference by rewriting the ModelName for a selected component implementation, optionally targeting the current or a named model.
Instructions
Set a model's model_name (footprint reference) on a SchLib symbol.
Rewrites the ModelName of one of the component's implementations. If model_name is given, the model whose current ModelName matches is targeted; otherwise the current (or first) model is used.
Args: component_name: the component's LibReference. new_model_name: the new model_name to write. model_name: optional current model_name to target a specific one. library_path: optional .SchLib path; defaults to the focused lib.
Returns: {"success": true, "component": "...", "new_model_name": "..."}.
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>",
"new_model_name": "<new_model_name>"
},
"name": "lib_set_model_name"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_name | No | ||
| library_path | No | ||
| component_name | Yes | ||
| new_model_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||