The 6-inch pellet gun toy usually operates using a spring or air pressure mechanism. When the trigger is pulled, it activates the internal mechanism, causing a small burst of air or spring tension to propel a lightweight plastic or foam projectile a short distance. These projectiles are designed to be safe for indoor or outdoor play, as they are soft and pose minimal risk of causing injury.