I’m surprised there isn’t already a standard for this, so I put together a simple JSON format that could make context transfer easier:
https://github.com/context-transfer-protocol/ctp-spec
I would love feedback on whether something like this actually makes sense, or ways it could be improved. I think models should make portability of context straightforward.
P.S. Contributions welcome — feel free to push updates.