Plecs Model Clone
plecs_model_cloneCopy a PLECS model file, optionally rename it or rewrite matching lines with regex replacements, then load it to verify. Use this file-level workaround when PLECS RPC cannot edit models directly.
Instructions
Copy a model file, optionally rename/rewrite lines, then load it to verify.
replacements is a list of {"pattern": <regex>, "value": <replacement>}.
This is the file-level alternative to schematic editing (PLECS RPC cannot edit a model).
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": {
"source": "<source>",
"target": "<target>"
},
"name": "plecs_model_clone"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| source | Yes | ||
| target | Yes | ||
| validate | No | ||
| overwrite | No | ||
| replacements | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||