It's generally not recommended to use aluminum foil in the toaster oven, but to instead use a baking tray. This is because the foil can melt onto the walls or even catch fire if it comes into contact with the heating element.