"CellLabelsToTags"
This token has not been fully integrated into the long-term Wolfram Language, and is subject to change.
"CellLabelsToTags"
is a front end token that gives a selected cell a cell tag that is the same as its current input or output prompt.
Details

- "CellLabelsToTags" is equivalent to Cell ▶ Cell Tags ▶ Cell Tags from In/Out Names.
- A typical use is FrontEndExecute[FrontEndToken["CellLabelsToTags"]].