In a mortar, pound 2 garlic cloves and 2 Thai chilies until no big chunks remain. Pound in 1½ tablespoons of chopped palm sugar.
Add 3 long beans, cut into short pieces, and pound lightly. Add 1 heaping tablespoon of dried shrimp and 3 tablespoons of roasted peanuts and pound briefly.
Stir in 1½ tablespoons of fish sauce, 2 teaspoons of tamarind paste, and 2 tablespoons of lime juice.
Add 1½ cups of julienned green papaya and ½ cup of halved grape tomatoes. Pound and toss with a spoon until the papaya wilts slightly and the tomatoes are lightly crushed.