I understand this works:
C = sage.server.notebook.cell.Cell(0, '2+3', '5', None)
C.id()
But I don't know understand how you can find that out for some arbitrary cell.
So far, the only way I know how is to use the interact decorator, and see what cell ids are used in the HTML.