Restart debuggee
debug_restartRestarts a debugging session by relaunching the target or reattaching to the inspector, then reapplies breakpoints while keeping the session and MCP connection alive.
Instructions
For launch: kill the debuggee, spawn the same configuration, reapply breakpoints. For attach: disconnect CDP, rediscover the inspector, reattach, reapply breakpoints. sessionId is unchanged and this MCP connection stays up.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "debug_restart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | No | Session id from debug_launch/debug_attach. Required when more than one session is live. |