In the service console toolkit its not possible to open same record in two tabs since the tabs needs to be unique, reasons for which i understand. But i am in a scenario where in, on clicking a link in the VF page i am trying to directly open a new primary tab and getting an error as "Cannot open primary tab :Duplicate tab exists". So basically i need to check if that record is already part of any of the primary or secondary tabs and if so i need to focus on that tab instead of opening a new tab.
But in the toolkit developer guide i dont see any methods available to check if the tab is part of the console. How to i implement the logic of checking if the record is already opened and only if not open a new tab, is there a better way than this logic?