Prussian blue functions as an ion exchange agent. Its crystal lattice structure has cavities that can host metal ions like cesium and thallium. When ingested, it binds to these ions in the gastrointestinal tract. By doing so, it reduces the enterohepatic circulation of these metals, effectively lowering their bioavailability and facilitating their removal from the body.