Kaa (Hindi: का) is a fictional character from The Jungle Book stories written by Rudyard Kipling. Kaa is one of Mowgli's mentors and friends.
...
Bagheera and Baloo first enlist Kaa's help to rescue Mowgli when the man-cub is captured by the
Bandar-log (monkeys) and taken to an abandoned human city. Kaa breaks down the wall of the building in which Mowgli is imprisoned and uses his serpentine
hypnosis to draw the monkeys toward his waiting jaws.
...
After he (Kaa) and Mowgli spend some time relaxing, bathing and wrestling,
...
Mowgli asks Kaa for help when his wolf pack is threatened by rampaging dholes (the red dogs of the title). Kaa goes into a trance so that he can search his century-long memory for a stratagem to defeat the dogs: