attach_by_pid
Attach to a running Electron app by PID, resolving its remote-debugging port from process arguments; the app must be started with --remote-debugging-port.
Instructions
Attach to a running Electron app by PID. Resolves the remote-debugging port from process arguments. App must have been started with --remote-debugging-port.
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": {
"pid": "<pid>"
},
"name": "attach_by_pid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | OS process ID of the Electron app | |
| name | No | Optional friendly name for this attached session |