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.
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) |