Attach to a running Node process
attachConnect to a Node.js process already running with --inspect or --inspect-brk to debug it over the V8 Inspector protocol. Detaching leaves the process running.
Instructions
Attach to a process already started with node --inspect or --inspect-brk (default 127.0.0.1:9229). Does not take ownership of the process; disconnect detaches and lets it keep running. Breakpoint paths are resolved against the server's cwd unless they're absolute.
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": "attach"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | 127.0.0.1 | |
| port | No | ||
| ws_url | No | Explicit ws:// debugger URL, if discovery via /json/list isn't possible. |