Plecs Webserver
plecs_webserverQuery PLECS webserver scope data and circuit images: retrieve traces, signals, CSV, cursors or bitmaps, apply time range/decimation, and save binary outputs to files for agent use.
Instructions
Undocumented PLECS webserver channel (verified on PLECS 5.0.6).
Commands: getScopeInfo, getTraceNames, getScopeSignals, getScopeCsv, getCursorData,
getScopeBitmap, getCircuitBitmap. Pass the command's own arguments in arguments.
getScope* take a scope path; getCircuitBitmap takes the model name;
getCursorData also accepts [scope, {"Index": 0}] (a bare integer is rejected).
getScopeCsv is base64 CSV; PLECS ignores its own range/size options, so
time_range=[t0,t1] and decimate=N are applied here. CSVs above max_rows
(default 50000) are written to the MCP output dir and only metadata is returned.
Base64 images (getScopeBitmap, getCircuitBitmap, getScopeSignals) are
written to save_to (or auto-saved under PLECS_MCP_OUTPUT_DIR) and replaced
by saved metadata; image bytes are never returned inline.
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": {
"command": "<command>"
},
"name": "plecs_webserver"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| save_to | No | ||
| decimate | No | ||
| max_rows | No | ||
| arguments | No | ||
| overwrite | No | ||
| decode_csv | No | ||
| time_range | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||