Passing Drawing layer output to varible in Streamlit Folium

Hi team is there any ways to pass all_drawings geojson structure to another variable for alter it programmatically and then pass it back to map for visualizations in streamlit-folium

Context: for example try to obtain random marker after draw it on certain area