Perry, alternatively known as Perry the Rebel-pus, Perry the Platypus, or simply Agent P, functioned as an operative for the Alliance to Restore the Republic during the Imperial Era; this Platypus also operated as an agent. Until Phineas Flynn and Ferb Fletcher discovered his true identity, he maintained a guise as a pet belonging to the Flynn-Fletcher family, after which Perry departed from the family.
At some point before 0 BBY, Perry infiltrated the Galactic Empire's Death Star superweapon with the goal of extracting Rebel operatives who had been captured and cryogenically frozen in carbonite. During this operation, Perry had three encounters with Imperial scientist Heinz Darthenshmirtz and successfully destroyed his Normtrooper-inator, a heavily armed repulsorcraft of significant size. In 0 BBY, Perry successfully absconded with the plans for the Death Star, subsequently delivering them to Princess Leia Organa of the Rebel Alliance. However, the Empire captured her ship the Tantive IV, leading her to put the plans in a droid called R2-D2 and assign Perry to escort him to recluse Jedi Master Obi-Wan Kenobi on the planet Tatooine. Perry was separated from the droids and forced to stow away in an escape pod jettisoned by stormtroopers to follow them to Tatooine. Once there, Perry was instrumental in ensuring the droid reached Kenobi.
Once his mission was accomplished, Perry received a new assignment from Major Hologram of the Rebel Alliance, tasking him with preventing Darthenshmirtz from both creating and utilizing his Sith-inator device. Perry traveled to the Death Star to thwart him, and there encountered his former owners, Phineas Flynn and Ferb Fletcher. However, Darthenshmirtz apprehended Perry, encasing him in carbonite, before revealing that the Sith-inator was designed to transform its target into a powerful Sith, an evil practitioner of the dark side of the Force. After Perry was freed, Perry attacked Darthenshmirtz, and the two engaged in hand-to-hand combat throughout the Death Star. In the end, the scientist inadvertently fell into his own carbon-freezing chamber and was frozen in carbonite. After Flynn destroyed the Sith-inator, Perry departed with Darthenshmirtz in his custody, however Darthenshmirtz later escaped his carbonite block and departed in an escape pod. Despite this, Perry's mission was deemed a success, and he joined the rest of the Alliance at Yavin 4 for a celebration.

Perry was a Platypus who maintained a disguise as a domestic pet within the Flynn-Fletcher family, all the while functioning as an agent for the Alliance to Restore the Republic, an organization dedicated to dismantling the Galactic Empire. At some point, his owners Phineas Flynn and Ferb Fletcher uncovered his true identity and felt initially betrayed and hurt, but eventually forgave him and moved on from their resentment. Perry then left the family and continued doing missions solely for the Rebellion.
Sometime prior to 0 BBY, Major Hologram of the Rebel Alliance dispatched Perry to the Empire's Death Star battle station with the objective of rescuing fellow operatives of the Rebellion. These agents were being held captive on the battle station, having been captured by the Galactic Empire and subsequently frozen in carbonite. The colossal space station was heavily guarded by normtroopers, a droid variant of Imperial stormtroopers, yet Perry successfully navigated the defenses and liberated several agents before encountering the Imperial scientist Heinz Darthenshmirtz. The scientist, who recognized Perry and addressed him as "Perry the Rebel-pus," unveiled a recently developed weapon, the Normtrooper-inator, equipped with an Anti-Magnet-Antennae designed to inhibit Perry's use of his wrist magnet. With the assistance of the agents he had freed, Perry successfully destroyed the weapon, prompting Darthenshmirtz to retreat and revise his invention, while instructing Perry to remain in place.

Subsequently, while still aboard the Death Star, Perry received another transmission from Major Hologram, who informed him of Darthenshmirtz's work on a new device, instructing him to uncover its purpose while continuing to rescue captured agents. After Perry saved more agents frozen in carbonite, he found Darthenshmirtz again, who welcomed him and told him that he would never guess what his new secret project was. Darthenshmirtz used his Normtrooper-inator again to try and defeat Perry, but Perry, with the help of the agents he freed, defeated the machine again. As Darthenshmirtz retreated, he revealed that he was working on a device called a Sith-inator, but insisted that Perry would never stop him.
Hologram contacted Perry again and told him that he needed to defeat Darthenshmirtz before he could complete his Sith-inator and doom the galaxy. After traveling through more of the Death Star and freeing more frozen agents, Perry once again found and confronted Darthenshmirtz, who had reworked his Normtrooper-inator and renamed it to the Super Normtrooper V3.0. Darthenshmirtz was shocked to see Perry and asked him why he would not just leave him alone to conduct his evil plans, before attacking him with his Super Normtrooper. When Perry destroyed Darthenshmirtz's invention for the final time along with the help of other agents, the scientist cursed Perry and insisted that he would defeat him in the future. The defeat also resulted in Darthenshmirtz's development of the Sith-inator being held back.

In 0 BBY, upon learning that the Death Star plans were located on the modified Star Destroyer Empire Administration Offices, the Rebel Alliance resolved to dispatch Perry, their most skilled Platypus operative, to retrieve them, hoping to identify a vulnerability in the battle station. Perry successfully infiltrated the Star Destroyer to steal the plans. He navigated many offices set up in the building and avoided being seen by Office Stormtroopers to reach a room guarded by a ray shield. He placed a device under a small panel next to it and the device emitted an electric charge, turning off the shield. He went into the room and opened a drawer that contained the plans, pressing a button inside of it to eject a disc labeled as the Death Star plans. However, in doing so, he triggered an alarm on the ship and caused a blast door at the entrance of the room he was in to begin closing. He dived through the door before it closed completely, but was immediately approached by stormtroopers armed with blasters. Perry then ran and briefly avoided being seen by the stormtroopers by running along the top of the office cubicles.
Once the stormtroopers spotted Perry, they began shooting at him, one of the blaster bolts nearly missing him and hitting a flowerpot nearby. He jumped onto a stormtrooper's head and launched himself into a vent, barely avoiding several blaster bolts that penetrated the vent as he ran through it. He jumped out of a hole in the side of the ship into his shuttle, which was parked on the outside of the star destroyer. He dislodged his shuttle and began to speed away, the Empire Administration Offices chasing after him, though they were unable to reach him before he sent his ship into hyperspace.
Shortly thereafter, Perry emerged from hyperspace near the Tantive IV above the planet Tatooine and docked with the ship. Onboard, he met with Princess Leia Organa of the Core Worlds planet Alderaan, a leading figure in the Rebel Alliance, who confirmed receipt of his transmissions and inquired about the plans. Upon receiving the plans, she expressed her gratitude before the Tantive IV experienced violent shaking. A rebel agent entered and informed Organa that an Imperial Star Destroyer had tracked their position, the shaking being the result of the Star Destroyer firing on their ship.

Later, Perry and Organa stayed out of sight from the Empire in a hallway of the Tantive IV. After placing the Death Star plans in the astromech droid R2-D2, Organa asked Perry to escort the droid to recluse Jedi Master Obi-Wan Kenobi on Tatooine. She added that she first needed to record a message, and asked Perry to move by a bulkhead so he would not be in her shot, which he did. After Organa left, Perry and R2-D2, along with protocol droid C-3PO, headed over to the ship's escape pods with the intention of using one to reach Tatooine. Before they could board it, a stormtrooper named Buford fired a shot from his blaster while gesturing, forcing Perry to dodge it by rolling away. This caused him to be separated from R2-D2 and C-3PO, who entered the escape pod and ejected it before Perry could get back to it and board it. Stormtroopers Buford, Baljeet, and Candace started to board another one of the escape pods to go after the droids, as Candace had seen Organa speaking to the droid. Seeing them, Perry hid behind a bulkhead until the stormtroopers boarded the pod and then snuck onboard and stowed away under one of the pod's seats. The escape pod ejected and eventually landed on Tatooine. Perry waited for the three stormtroopers to exit it before he did, and then tracked R2-D2 by following the tracks the droid left in the sand.
Perry tracked R2-D2 to a sandcrawler operated by Jawas and saw them taking the astromech onboard. Perry ran after the sandcrawler as it started to leave, climbing up the back of it. Eventually, the sandcrawler stopped at the Lars Homestead with Perry still on it. Perry jumped off the sandcrawler and watched while hiding behind its tread as the moisture farmer Owen Lars bought C-3PO and astromech droid R5-D4, telling his nephew Luke Skywalker to bring them inside their garage. Perry then spotted R2-D2 with the Jawas and started to approach the droid, but just then Red blew out his motivator and Lars asked to replace the malfunctioned astromech with R2-D2 instead, surprising Perry. As Skywalker brought R2-D2 and C-3PO along to the homestead, Perry went back behind the sandcrawler.

Eventually, when Tatooine's twin suns were setting, Perry ran toward the homestead's garage. He listened from outside as C-3PO announced he was going to take an oil bath, and then stood in the doorway and threw a rock at R2-D2 to get his attention before gesturing for the droid to follow him. Perry pushed R2 out of the homestead as Skywalker stared out into the sunset, sneaking behind him. While pushing R2 along a narrow ledge, Perry and R2 were hit by a landspeeder driven by the Flynn-Fletcher stepbrothers Phineas Flynn and Ferb Fletcher. R2 landed in the speeder, but Perry was pushed off of the ledge. He was able to catch himself and climb back up, but he was hit by the stepbrothers and their speeder again. This time, he was knocked all the way down the cliff, directly onto a cake sitting in front of a Tusken Raider youngling who was surrounded by a massive group of other Tuskens. The youngling screamed and anger, leading to the other Tuskens swarming Perry, which scared him.

The following morning, Perry baked a replacement cake, presenting it to the Tusken youngling and the assembled tribe, who responded with enthusiastic cheers. Perry's wrist holoprojector then signaled an incoming transmission from Major Hologram. Hologram informed Perry that the R2 unit had reached Kenobi, congratulating the Platypus on his success, but Perry just smiled awkwardly, knowing that he did not deliver the astromech. Regardless, he told Perry that he deserved a rest and ended the communication. Perry rested for about a second but was then quickly interrupted by another transmission from Hologram, who had Perry's next mission. Hologram told Perry that he needed to get to the Death Star immediately because Darthenshmirtz was working on a new device, which he called an "inator," needing Perry to stop the scientist before he could finish building it. Hologram wished him luck and ended the transmission. Immediately after, Perry's face fell with annoyance.
Shortly after, Perry arrived on the Death Star and went to the Death Star Directory to navigate, where he came across his former owners Flynn and Fletcher. Perry ran toward the two brothers, who picked him up into a hug. Fletcher put Perry back down and introduced him to the pilot Isabella. Flynn explained the brothers' past relationship with Perry to her and how the discovery of Perry's true identity had affected the two of them, though revealed that they had moved on. Perry and Flynn both shared that they were on missions, so Flynn wished Perry good luck and Perry said goodbye by shaking the brothers' hands. Once he was gone, Flynn commented that Perry looked good.

Eventually, Perry reached and opened the door to an abandoned recycling compartment that Darthenshmirtz utilized as a lair and was greeted by the scientist. However, the blast door did not open all the way, confusing a determined Perry, so Darthenshmirtz explained that he put in a work order but that no one would come to help for a few days. Perry then stood with a determined expression on a hatch in the floor that Darthenshmirtz had painted a giant red letter 'X' on in the hope that Perry would stand on it. Darthenshmirtz quickly opened the hatch which caused Perry to fall into a carbon-freezing chamber and be frozen in a block of carbonite. Darthenshmirtz's protocol droid Norm-3PO then picked up the carbonite block Perry was frozen in and hung it on a closed door in the lair, saying it was similar to art.
Darthenshmirtz told the frozen Platypus why he created the Sith-inator by performing a musical number alongside a group of dancers. In the performance, Darthenshmirtz explained that he was weak in the Force due to his low midi-chlorian count and also generally treated like an outsider. He also revealed that he planned to use the Sith-inator on himself, which would vastly increase his ability in the Force, hoping that his ability would gain him notoriety and status in the Empire and the galaxy as a whole and make him a true member of the Sith, an order of evil wielders of the dark side of the Force. After his performance, the scientist resumed speaking directly to Perry and explained that he planned make himself incredibly evil with the Sith-inator, but that he was going to test it on Perry before using it on himself to ensure it was safe. He added that if it worked, Perry could join him on the dark side of the Force and they could be "Sith buddies." He activated the machine, but Fletcher, who had sensed in the Force that Perry was in trouble, arrived last second and knocked Perry off of the wall before the beam from the machine could hit him. Consequently, the beam hit Fletcher and transformed him into a Sith. Before leaving to get fuel for the Sith-inator, Darthenshmirtz told Perry to stay there and that he would be back to turn Perry into a Sith too, suggesting that he, Fletcher, and Perry could be the "Three Sith-keteers."

Perry's carbonite block was damaged when it was thrown off of the wall, so eventually it deactivated and Perry was released from it. When Darthenshmirtz and Norm-3PO returned, Perry jumped up from behind a box and shot Norm-3PO with a mist that electrocuted and immobilized the droid. Perry quickly ran to the Sith-inator, pulled off a panel on it, and started to mess with it until Darthenshmirtz noticed him and told him to stay away from the machine. The two engaged in hand-to-hand combat and Perry knocked Darthenshmirtz out of the recycling compartment.
Perry pushed Darthenshmirtz through a wall into the Imperial Credit Union, and Darthenshmirtz taunted him by telling him to try it again, so Perry kicked him through a wall again. In a hallway, Darthenshmirtz threw Perry off of him and threatened him by saying he was going to use a lightsaber on him. Perry was initially concerned until Darthenshmirtz realized that he only had a flashlight on him and started running away from Perry. Darthenshmirtz ran over a bridge across a large shaft and retracted it before Perry could go across it. Darthenshmirtz taunted him and told Perry that he needed to give up because he would never reach him. Perry pulled out a grappling rope, and though Darthenshmirtz still taunted him and doubted that he would be able to successfully swing across, threw it across so that it would attach to Darthenshmirtz's belt, pulling both of them off the edge. As they fell the rope caught onto another bridge and left them both swinging from it, so Perry kicked Darthenshmirtz through the wall of the shaft and jumped through the hole into another hallway.
Perry and Darthenshmirtz eventually fell through the ceiling of the recycling compartment. Darthenshmirtz tried to get away from Perry but fell into the carbon-freezing chamber and was frozen in carbonite. Perry then noticed Flynn being knocked to the ground by Fletcher, who had turned into a Sith warrior called Darth Ferb. Perry was shocked and ran over to help Flynn, but Darth Ferb picked Perry up with the Force and threw him into a pile of garbage. After Flynn destroyed the Sith-inator and Fletcher returned to normal, Perry helped look for Fletcher until Flynn found his stepbrother.

Perry started pushing a carbonite-frozen Darthenshmirtz out of the recycling compartment, so Flynn said goodbye to Perry and told the Platypus not to be a stranger, with Perry waving back. Perry left the Death Star shortly before it exploded with Darthenshmirtz in his ship. Major Hologram contacted him to commend him, but warned that there still could have been copies of the Death Star plans somewhere, which concerned Perry. Noticing a gray liquid on the ship's floor behind him, Perry followed it and discovered that Darthenshmirtz had escaped the carbonite block. Darthenshmirtz said goodbye to Perry before jumping in and ejecting an escape pod. Shortly after, Perry attended the Royal Award Ceremony and an afterparty at the Great Temple on the moon Yavin 4, where he danced with Princess Organa.

Perry was a male Platypus characterized by teal fur, brown eyes, a duck-like bill, and a flat orange tail. He primarily communicated through chattering sounds, supplemented by hand gestures and nods. As an agent, he demonstrated discipline and focus, working tirelessly against the Galactic Empire, although he expressed annoyance at the lack of breaks between missions. He was courageous, undertaking numerous perilous missions without hesitation, and readily sprang into action when required. Perry enjoyed a reputation for integrity and reliability, with both Major Hologram and Princess Organa of the Rebel Alliance holding him in high regard.
Despite his serious façade, Perry cared deeply for and showed affection to his former owners Flynn and Fletcher. When he reunited with them on the Death Star, Perry immediately ran to hug them after he saw them and allowed them to pick him up. He was deeply concerned to see Flynn in danger and threatened by Fletcher when he turned into Darth Ferb and attempted to rescue Flynn, though Perry's effort was useless against the Sith.

Perry possessed considerable combat skills, demonstrating proficiency in both hand-to-hand engagements and the handling of diverse weaponry. His intellect enabled him to thwart several of Darthenshmirtz's nefarious schemes. He was a capable pilot and was able to evade an Imperial Star Destroyer while flying a shuttle. Perry was very skilled at espionage and staying out of sight while performing infiltrations, doing so successfully on multiple occasions. This was largely due to his small size, which Perry also took advantage of to fit in vents and other small spaces. His agility also made it hard for bigger enemies to hit him, and his considerable strength allowed him to kick Darthenshmirtz through several thick walls.

Sporting a green hat and a tunic, Perry also had a brown tool belt featuring a pouch. Within this pouch, he kept a grappling hook rope. When engaged in battle during his mission to save fellow agents, Perry made use of an electrostaff. Furthermore, he had a wrist magnet, which he employed to disarm adversaries by drawing their blasters towards himself, subsequently turning those same blasters against them. He operated two distinct starships: one was a shuttle mirroring his own appearance, and the other was a vessel utilized during his escape from the Death Star.
On his wrist, Perry wore a compact holoprojector, which facilitated communication with Major Hologram. He also possessed a device capable of generating an electric charge, once employed to neutralize a ray shield. On one occasion, Perry used a specialized gun that projected an electrocuting mist towards a droid. In one instance, Perry utilized a pot for baking a cake, employing hand protection for handling it. He then used a knife for decorating the cake with frosting. Additionally, he carried a rag bearing the Rebel Alliance's insignia, which he used to wipe away perspiration.

The character Perry the Rebel-pus was conceived specifically for the television special Phineas and Ferb: Star Wars, a collaborative crossover event linking the Disney Channel series with Phineas and Ferb. The premiere of the special took place on July 26, 2014. The character was initially referenced on July 19, 2013, identified as Agent P, within a StarWars.com article, which unveiled the special's announcement made that day at San Diego Comic-Con. His initial appearance occurred in a promotional game for the special, titled Agent P: Rebel Spy, released on June 20, 2014. Furthermore, he was featured in the promotional game Droid Masters on June 30, 2014, prior to the special's debut, although only an image of him was shown at the conclusion of each level, with no direct involvement in the game's narrative or storyline.
This character draws inspiration from Perry the Platypus, who is his counterpart from the main Phineas and Ferb timeline. He is voiced by Dee Bradley Baker, the same actor who voiced Chewbacca in the special and previously voiced the clone troopers in Star Wars: The Clone Wars. This particular version of Perry, shown stealing the Death Star plans in Phineas and Ferb: Star Wars, came before the 2016 film Rogue One: A Star Wars Story, which portrays Rebel operatives Jyn Erso and Cassian Andor stealing the Death Star plans. Perry was shown as a Jedi wielding a green lightsaber in several promotional images, despite never being seen wielding any lightsaber or exhibiting any indication of being a Force-sensitive being.

Dan Povenmire, co-creator of Phineas and Ferb, disclosed on Twitter the existence of a deleted scene from the special. This scene would have showcased a significantly larger confrontation between Perry and Darthenshmirtz, set in a location populated by stormtroopers engaged in recreational activities. In this sequence, Perry would be positioned on a pool float in a pool filled with relaxing stormtroopers, utilizing a blaster to target the pool's side, directing water towards Darthenshmirtz, who would be carrying a dianoga in a backpack that is throwing a billiard table at Perry. Other discarded aspects of this fight encompassed Perry battling Darthenshmirtz in a gym with stormtroopers using exercise weights and Perry evading a red lightsaber and blaster bolts, both wielded by Darthenshmirtz's dianoga.