Attach to a running Electron app
attach_appRegister a running Electron application as a debug session by probing its debugging ports. The caller retains lifecycle control; stopping the session does not kill the process.
Instructions
Register an already-running Electron instance as a debug session. The caller started the app with --remote-debugging-port=<debugPort> and optionally --inspect=<inspectPort>; this tool just probes those ports and stores them so the rest of the MCP can drive the app. Stopping the session with stop_app will NOT kill the underlying process — the caller owns its lifecycle.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Display name for the session. | |
| debugPort | Yes | CDP port the Electron renderers are listening on. | |
| inspectPort | No | Node inspector port the main process exposed via --inspect. Omit if main-process debugging isn't needed. |