Skip to content

MCP tool reference

Generated by tools/gen_tool_docs.py from the tool descriptions the assistant sees.

build_design

Generate a project from seed templates. parts: [{"id":"U1","kind":"6116","x":-3400,"y":1000,"state":0}] (thou). kinds: LS(pin Q) 6116(A0-A10 CE OE WE D0-D7) 74HC374(D0-D7 Q0-Q7 OE CLK) DIPSW_8(L0-L7 R0-R7) BCD BLUE GRN(P0-P3). wires: [{"a":"S1.Q","b":"U1.A0","net":"A0","via":[[x,y],...],"jog_x":-5000}]. Without via a 2-bend route is made. Check conflicts is empty (wires of different nets touching/overlapping = merged nets in Proteus). Experimental: new designs may fail to load in Proteus; verify with open_project + screenshot.

parameter type
name string
parts array
wires array

build_native

Build a project with Proteus ITSELF (real Pick Devices, placement, wire tool, graphs) so every number later comes from Proteus. Any library device works. Takes minutes; the whole GUI lives only inside this call. Follow with evidence to export results. parts: {"id","device","x","y"[,"value","ref","props":{K:V}]} (thou; device = exact Proteus device name, e.g. RES CAP 74HC00 LM358); {"id","kind":"generator","device":"SINE|DC|PULSE|...","x","y"[,"name","amplitude","frequency","offset","phase"]} (edit = sine only), {"id","kind":"probe","device":"VOLTAGE|CURRENT"}, {"id","kind":"terminal","device":"GROUND|POWER|INPUT|OUTPUT|..."}, {"id","kind":"instrument","device":"OSCILLOSCOPE|..."}. Keep clear of (-1500,1500): the start project's logic state used for calibration. wires: {"from":"R1.0","to":"C1.1"} pin = name or index (generators/probes/terminals: 0 or GND). Pins are real connection points. graphs: {"type":"ANALOGUE","x1","y1","x2","y2"[,"title","start","stop"],"traces":[{"name":"Vout","probes":["P1"]}]} (probes = part ids).

parameter type
name string
parts array
wires array
graphs array/null
max_seconds number

derive

Evaluate an expression of a finished run's probes on a grid, e.g. "db(v(out)/v(in))" (gain), "v(in)/i(R1)" (input impedance), "v(a)-v(b)", "v(out)*i(R2)" (power). AC probes are complex (answer gives mag/dB/deg). measure() accepts such expressions as probe.

parameter type
name string
expr string
points integer
interp string

evidence

Proteus-authored evidence bundle for a project that contains simulation graphs. In ONE Proteus session: run each graph (all by default, or the 1-based indices in graphs), save Proteus's own full-size graph picture and the data Proteus exports (Graph > Export Graph Data), screenshot the schematic, and write a manifest with SHA-256 checksums. Use this when reviewers only trust Proteus's own results: no number in it is computed by Python. Open dialogs/errors during the run are reported in note fields of the screenshots (see gui_run for manual control).

parameter type
project string
graphs array/null
wait number
load_wait number
max_seconds number

export_project

Copy a sandbox project to a NEW host path. Refuses to overwrite.

parameter type
name string
dst_path string

gui_run

Open a Proteus project in the sandbox, perform actions, return the screenshots, then shut EVERYTHING down (Wine, Xvfb, Proteus) before the call returns: nothing keeps running between requests. Startup costs 15-40 s per call (raise load_wait for big designs), so put all steps of a task into one call. actions (in order), each a dict: {"do":"wait","s":5} | {"do":"click","x":1200,"y":560} | {"do":"click_design","x":-1900,"y":-1000} (thou; toggles a LOGICSTATE/DIP switch) {"do":"key","keys":"F12"} | {"do":"type","text":"..."} | {"do":"simulate","mode":"graph|animated","graph":2,"wait":15} {"do":"view_graph","index":0,"name":"g"} (double-click the graph title bar: full-size Proteus graph; picture returned) {"do":"export_graph_data","name":"x"} (Proteus writes the selected graph's data to exchange/x.dat) | {"do":"close_graph"} | {"do":"windows"} | {"do":"dismiss","keys":"Return"} (close an error/recovery dialog) | {"do":"screenshot","name":"shot","trim":true,"crop":[x0,y0,x1,y1]} Screen is 1920x1080. A screenshot is always appended at the end.

parameter type
project string
actions array
load_wait number
max_seconds number

import_project

Copy a host .pdsprj into the sandbox (read-only access to the original). Returns the name for other tools.

parameter type
src_path string
name string/null

import_sdf

Copy a host .SDF netlist (ISIS SCHEMATIC DESCRIPTION FORMAT) into the sandbox.

parameter type
src_path string
name string/null

list_projects

Projects (.pdsprj) in the sandbox exchange folder.

measure

Measure on a finished simulate() run. what: stats (min/max/mean/rms) | at (value at x) | bandwidth (-3 dB of an AC probe; ref=first|peak) | harmonics (THD of a transient probe at fundamental f0 over the last periods periods) | edge (10-90 % time, overshoot). interp: "linear" (default, how Proteus draws traces) or "hold" (step between solver samples; use for pulse edges and digital-like signals).

parameter type
name string
what string
probe string
f0 number/null
x number/null
periods integer
nharm integer
ref string
after number
interp string

model_text

SPICE text (.MODEL or .SUBCKT) of a Proteus library entry.

parameter type
name string

monte_carlo

Monte Carlo over component tolerances: tolerances {"R1":"5%","C1":"10%"} (gauss: sigma = tol/3; uniform: +-tol). metric as in sweep(). Returns mean/std/min/max and every run.

parameter type
spec object
tolerances object
metric object
runs integer
seed integer
distribution string
name string

plot_run

Plot a finished simulate() run (AC: gain + phase; others: traces) as a PNG in sandbox/exchange.

parameter type
name string
probes array/null
file_name string

project_info

Parts (ref, device, pins, properties) read from ROOT.CDB of a project.

parameter type
name string

project_netlist

NO GUI: read a Proteus project (.pdsprj in the sandbox) directly and return the circuit spec extracted from it: components (R, C, L, diodes, transistors, sources, gates, pots, subcircuits ...), nets, ISIS generators as voltage sources, voltage probes as default probes, current probes as 0 V sources. unsupported lists components that cannot be simulated headless (VSM microcontroller models, behavioural parts ...). The analysis is not read from the project's graphs: pass one (see simulate) or get an operating point.

parameter type
name string
analysis object/null

prospice_run

Run PROSPICE.EXE headless on an SDF in the sandbox. Experimental: results are binary .PDF (not decoded yet).

parameter type
sdf_name string
timeout integer

reset_sandbox

Discard the working Wine prefix; re-created from the pristine snapshot on next use.

run_sdf

Headless-run an ISIS SDF netlist already in the sandbox (e.g. a cap_/LISA*.SDF from simulate_project) and decode it.

parameter type
sdf_name string
name string/null

search_models

Search Proteus's libraries by name/description words: 4000+ SPICE models/subcircuits (op-amps, MOSFETs, diodes...) and 37k device-library parts (BC547, 2N2222, 1N4007... most map to a generic model usable as model in simulate).

parameter type
query string
limit integer

simulate

Simulate a circuit headless with Proteus's own engine (ProSPICE) and return numbers. Fast (~2 s), no GUI. spec = {"parts":[{"ref":"R1","kind":"R","nodes":["in","out"],"value":"1k"}, ...], "analysis": {"type":"op"} | {"type":"transient","tstop":"5m","tmax":"5u"} | {"type":"ac","fstart":10,"fstop":"1M","points":20,"mode":"dec"} | {"type":"dc","source":"V1","start":0,"stop":5,"step":0.1}, "probes":["v(out)","i(R1)"], # default: all node voltages; i(ref) inserts a current probe (current INTO pin 1) "models":{"MYD":{"type":"D","params":{"IS":"1n"}}}, "temp":27} kinds: R C L (value: 1k 10u 2.2M... ISIS notation: m=milli, M=mega) | V I (value=DC; "wave":{"type":"sine","amp":1,"freq":1000} | pulse{low,high,delay,rise,fall,width,period} | exp | sffm | pwl{points:[[t,v]]}; "ac":true marks the AC source) | D Q QP J JP M MP (nodes D:[A,K] Q:[C,B,E] J:[D,G,S] M:[D,G,S,B]; "model": a Proteus library name like 2N3904, 1N4148 or one in spec.models) | E G (nodes [out+,out-,ctrl+,ctrl-], value=gain) | OPAMP (ideal, nodes [in+,in-,out], optional gain/rout) | X (SPICE subcircuit: "subckt":"TL072" from Proteus's libraries or text in spec["subckts"]; nodes in the subcircuit's port order, e.g. op-amps [in+, in-, V+, V-, out]). Node "0" is ground. SPICE sign conventions for I and G. Returns summary numbers (stats / gain / op), a downsampled table and a full CSV path; use measure() for more.

parameter type
spec object
name string
max_rows integer

simulate_project

Bridge GUI -> numbers: open a Proteus project, trigger its simulation (space = checked graph or graph #n, F12 = animated), capture the netlist(s) ISIS hands to ProSPICE, close everything, then re-run them headless. Each captured partition becomes a run <name>_p0, <name>_p1... usable with measure / derive / plot_run / sweep. A screenshot <name>_graph.png of Proteus's own graph is saved too. The captured netlists are cached by project content: repeating the call for an unchanged project skips the GUI entirely (use_cache=False to force).

parameter type
name string
key string
wait number
load_wait number
graph integer/null
max_seconds number
use_cache boolean

simulate_project_nogui

NO GUI, about 2 s: simulate a Proteus project by extracting its netlist from the file (see project_netlist) and running ProSPICE. Prefer this over simulate_project (which starts Proteus) whenever the design contains only supported parts. Results work with measure / derive / plot_run / sweep.

parameter type
name string
analysis object
probes array/null
skip_unsupported boolean
run_name string

simulate_spice

Simulate a SPICE deck (R C L V I D Q J M E G X, .MODEL .SUBCKT .PARAM, .OP/.TRAN/.AC/.DC, .PRINT/.PROBE) with Proteus's engine. Library models/subcircuits (e.g. 2N3904, 1N4148, LM324, OP07 as X) are resolved from Proteus's libraries. SPICE number notation (m=milli, MEG=mega). Pick which analysis card to run with analysis_index. Not supported yet: F H K S W B, .INCLUDE.

parameter type
deck string
name string
analysis_index integer
max_rows integer

sweep

Parameter sweep: re-simulate spec for each value of target ("R1" = part value, "temp", "V1.wave.freq", "C1.value") and collect one number per run. metric: {"what":"stats","probe":"v(out)","field":"rms"} | {"what":"op","probe":"v(c)"} | {"what":"bandwidth","probe":"v(out)","field":"f_high_3db"} | {"what":"harmonics","probe":"v(out)","f0":1000,"field":"thd_pct"}.

parameter type
spec object
target string
values array
metric object
name string

write_sdf

Write an SDF netlist (sections *PROPERTIES *MODELDEFS *PARTLIST *NETLIST) into the sandbox.

parameter type
name string
text string