get_state
Inspect the current stateful session data stored in Redis for a specific project and sessionKey. Returns the full JSON state object containing 'request' (last captured request snapshot), 'response' (last captured response snapshot), and any custom variables saved via stateCaptureVariables or set_state. Use this tool after firing test_mock on a stateful endpoint (or after calling set_state) to verify that stateCaptureExpr and stateCaptureVariables saved the expected values before testing downstream mocks that rely on stateLookupExpr.
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": {
"projectSlug": "<projectSlug>",
"sessionKey": "<sessionKey>"
},
"name": "get_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionKey | Yes | Exact resolved session key under which state was captured or set (e.g. user email, order_id, or auth token). | |
| projectSlug | Yes | Unique slug of the project workspace (obtain from list_projects, e.g. 'u2uwqsy4'). |