Resolve the result.content[0].text payload from a JSON-RPC envelope into a plain object. When the content holds a payloadPath pointer, dereferences it via readGatewayPayload subject to the temp-root allow-list.
Falls back to { text: <raw> } on JSON parse failure, mirroring the legacy single-blob client behaviour relied on by older callers.
Resolve the
result.content[0].textpayload from a JSON-RPC envelope into a plain object. When the content holds apayloadPathpointer, dereferences it via readGatewayPayload subject to the temp-root allow-list.Falls back to
{ text: <raw> }on JSON parse failure, mirroring the legacy single-blob client behaviour relied on by older callers.