gui_run
Automates a Proteus project session by opening it in a sandbox, executing ordered GUI actions, capturing screenshots, and shutting down all processes before returning.
Instructions
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.
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": {
"project": "<project>",
"actions": "<actions>"
},
"name": "gui_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actions | Yes | ||
| project | Yes | ||
| load_wait | No | ||
| max_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |