Kingdom Hearts
Carpet is trapped under a drawer when Sora, Donald, and Goofy enter Aladdin's house. Once they release it, Carpet leads them to the desert where they find Aladdin and Abu, trapped in quicksand and surrounded by Heartless. Carpet later bears Sora and the others out of the Cave of Wonders as it collapses.
After completing the Final Keyhole and relocating Kairi to Traverse Town, Sora can "talk" to Carpet in Aladdin's house, and it leads the party to a disturbance in the desert caused by a powerful Heartless, Kurt Zisa. After they defeat the massive Heartless, Carpet takes them back to Agrabah.
 Kingdom Hearts 358/2 Days
Carpet is a character residing in Agrabah during the events of the game who is always seen with Genie. At first, when Carpet sees Roxas, he believes the Nobody to be Sora. However, Genie does not see the similarity between the two, and dismisses Carpet's claim.
 Kingdom Hearts II
Carpet and Genie went off to travel the world a year ago, leaving Aladdin depressed because of the town's lack of excitement. Carpet and Genie later return to Agrabah separately during Sora's first visit.
When Sora returns the second time, Carpet serves as their ride through the Desert Ruins to hunt Jafar, and later to escape. Carpet also helps Sora when he takes on Genie-Jafar by acting as a "platform" for Sora to stand on so he can fight in the air. After the defeat of Jafar, Carpet becomes part of Sora's mini-game in Agrabah's Desert Ruins.
Carpet is an ornate Persian carpet with gold lining and tassels that it uses as "hands" and "feet". A second gold rectangle splits Carpet's designs into two sections. The outer section's background is han blue in color and covered in gold and navy blue disk-like patterns. Each corner sports a vaguely catfish shaped design with a gold outline and red center. The inner section's background is also han blue with a swirling, amethyst-colored pattern surrounding a gold and red pattern in the center that vaguely resembles a flower. The corners of this section each bear a gold tiger with white eyes, black nostrils, and a red mouth, possibly representing the Cave of Wonders Guardian. At both widths of the inner border is a red flame pattern with a thin gold outline.
Carpet is originally from the 1992 Disney movie Aladdin, where he is found inside the Cave of Wonders. Initially timid, Carpet quickly befriended Aladdin and Abu and showed them the way to Genie's lamp inside the cave. Once escaping from the Cave of Wonders, Carpet stayed with Aladdin, Abu, and Genie and acted as their means of transportation.