This event is signalled by tpl_toc() in inc/template.php. You can use this event to add/remove items from the TOC.
$data contains an array holding the TOC.
The following plugins are known to handle this event and their source code may be a good start for understanding and implementing a handler yourself.