attach_pid
Attach to a running process by host PID to enable dynamic instrumentation and analysis.
Instructions
Attach to a running process by host PID.
Args: session: session id pid: host PID of the target device_id: optional device id; empty means first available
Returns::
{
"status": "OK",
"session_id": "...",
"pid": N,
"device_id": "...",
"kind": "attach"
}
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": {
"session": "<session>",
"pid": "<pid>"
},
"name": "attach_pid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | Yes | ||
| pid | Yes | ||
| device_id | No |