Cobalt imidazolate metal-organic frameworks photosplit CO(2) under mild reaction conditions.