The relates to a rotary tool (3), in particular a screwing tool, which comprises a frame (4) with a robot terminal (5), its own controllable rotary drive (9), an output shaft (6) and a coupling (10) with a controllable actuator (31) for producing a rotation-locking connection between the robot terminal (5) and the output shaft (6). The coupling (10) is designed as a ratchet-type coupling and produces a form-locked peripheral connection between the output shaft (6) and the frame (4).