Mix tomatoes, garlic, sun-dried tomatoes, drained capers and herbs, season with salt and pepper. Mix in the pasta and oil and pour everything into an ovenproof dish. Spread the diced mozzarella and pine nuts on top and bake everything in the hot oven for about 15 minutes.