Local bindings from stack trace?

Is it possible to get/recover the local variable bindings in a specific stack frame from a StackTrace?

I know there is Base.@locals, but this just stores the local bindings at its specific call site. Thus, it doesn’t provide a way to get those bindings after the fact, e.g., when walking a stack trace.