main/format: Add an API call for retrieving format attributes