MDL-69549 core: Add context export API