pwndbg_pid
Retrieves the process ID (PID) of the debugged process in a pwndbg session. Provide the session ID to obtain the current PID.
Instructions
Get the PID of the running process.
pwndbg command: pid (alias: getpid) Source: pwndbg/commands/procinfo.py Category: Process
Args: session_id: The UUID of the session.
See: https://pwndbg.re/2025.05.30/reference/pwndbg/commands/procinfo/
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_id": "<session_id>"
},
"name": "pwndbg_pid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |