A jamming gripper with no pump. Pressing the bag onto the bulb pushes air out through a one-way valve. A foam core then tries to spring the bag back open, but no air can get back in, so the granules lock rigid around the dome. A cord opens a vent to release it. This is my own untested idea.
5-minute test: fill a balloon with ground coffee, add a piece of sponge, and fit an aquarium check valve in the neck.