Inject into running Electron app
electron_injectAttach to a running Electron process without debug flags by injecting the Node inspector. Provide the process ID to enable inspection and control.
Instructions
Attach to a running Electron process that was NOT started with a debug flag, by injecting the Node inspector. Provide pid. Returns: { ok, session_id, transport, windows }. Errors: INJECT_FAILED (handshake failed or inspector belongs to another process; retryable — try electron_attach when the app already exposes a debug endpoint), TRANSPORT_UNSUPPORTED, BAD_ARGUMENT.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | Process id of the running Electron app. | |
| timeoutMs | No | Max wait for the inspector handshake. |