Is there a limit to the size of the usb drive I can use when attached to the time capsule?
No, but I would stay at 4 TB or less.
Can I use a 1 or 2 tb thumb drive attached to the time capsule to do wireless backup with time machine?
Yes
Keep in mind that the drive must be formatted in Mac OS Extended (Journaled) to work with Time Machine.
Now, a few possible downsides:
The USB port on the Time Capsule is an old and slow USB 2.0 design that runs at only about half of normal USB 2.0 speeds due to the limitations of the processing in the Time Capsule, so backups are going to be.......s---l--o--w.
Most newer USB drives are going to be USB 3.0 designs. While this is supposed to be compatible with USB 2.0, this is not always the case.
Finally, the USB port on the Time Capsule is underpowered compared to a USB port on a computer. You may need to use a powered USB hub with the Time Capsule.....even if the USB drive has its own power supply.