How does a futon framework work?

A futon frame uses a folding mechanism to switch between sofa and bed positions. Depending on the type, the frame may feature bifold or trifold designs to accommodate different spaces.