inspectMain
bool
How to use it
inspectMain is exposed by the Electron MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the inspectMain tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
FULL ELECTRON MCP SERVER LISTINGOther tools in Electron MCP Server (39)
string
Attach by OS process id. Resolves --remote-debugging-port from the process command line (Linux/macOS/ps, Windows PowerShell). Falls back to listening sockets owned by the PID on Linux when needed.
bool (set)
Buffered console text includes
int 1024–65535
Element exists and is not disabled
int
Record<string,string> ✅ (set)
Evaluate in the Electron main/node CDP target.
number
string ✅
string[]
List running Electron-like processes.
png \
Element absent or not visible
localStorage \
string
string ✅ (savescreenshot)
int
string ✅
int 0–100
bool
page \
Strict \
Save a PNG under the OS temp dir on failure
string
Launch Electron with remote debugging.
int
string
document.body.innerText includes
Default 10000 (max 120000)
location.href includes
string[]
Provide at least one condition: