Slice focaccia into two pieces. Brush the bottom of the focaccia with butter and place it bottom side down on a sheet pan lined with parchment paper for easy cleanup. Brush both sides of the inside of the focaccia with pesto. Layer cheese and tomatoes. Cover with the top of the focaccia. Brush with remaining butter.
Cook for 10 minutes in the oven or until all the cheese is melted.