You could have either, but I'm voting for the Tomato Hornworm rather than the Tomato Fruitworm.
The "Tomato Fruit Worm" (almost identical to the Corn Earworm) is normally a relatively small (1"-2") brownish (sometimes greenish-brown) caterpillar. While they will sometimes eat some foliage, they prefer to tunnel into & feast on the tomatoes themselves, rather than the leaves.
The "big", "ugly", "green" caterpillar with the little spike/horn sticking up from its rear end & known as the "Tomato Hornworm" is produced by a night-flying Hawk Moth (aka "Spinx" &/or "Hummingbird" moths) - Manduca quinquemaculata. They can whittle a tomato plant's foliage down to nubs in just a night or two, & yes, they are sometimes parasitized by wasps, which will find them with long rows of white eggs attached to their backs. If possible, these parasitized caterpillars should be left on the plant; all others should be either picked off & drowned in a container of soapy water, or picked off a tossed a goodly distance away from the garden. Some birds & other critters love them. Here are some info sites:
https://www.extension.umn.edu/garden/ins ... e-gardens/
https://www.gardeners.com/how-to/tomato- ... /5287.html
https://www.missouribotanicalgarden.org/ ... rworm.aspx
My body is a temple. Unfortunately, it's a fixer-upper.