Stop a debug session
stop_appTerminate an Electron app session by closing CDP connections and killing the underlying process if launched via MCP. Safe for cleanup flows.
Instructions
Close every CDP client tied to the session and, if the MCP launched the app, kill the underlying process. A no-op for already-stopped sessions, so safe to call unconditionally in cleanup flows.
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": {
"id": "<id>"
},
"name": "stop_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Session id from `launch_app`/`list_apps`. | |
| keepSession | No | If true, don't delete the session record — its logs remain readable via `get_main_logs`/etc. Defaults false. |