Is there a way to dump the state directly?

Not unless you are anthropic/openai, or run your own models.