get_process_state
Retrieve the internal state of a GenServer process to see the exact data it holds, passing its PID or registered name.
Instructions
Get the DATA a GenServer is holding — its internal state (the value in the GenServer's loop).
WHEN TO USE: You want to see the actual data/state inside a process — what it's storing, its current values. NOT FOR: Process metadata like memory/links/stacktrace (use get_process_info). Process dictionary entries (use get_process_dictionary). Note: may timeout if the process is busy or doesn't support :sys messages.
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": {
"pid": "<pid>"
},
"name": "get_process_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | PID string (e.g. "<0.123.0>") or registered name (e.g. "MyApp.Worker") | |
| timeout | No | Timeout in milliseconds (default: 5000) |