As detailed in the API you can get or set the content
option, after initialization. Your latest amend to your question is almost right but the tooltip
is expecting a string as the final value.
$("#box").tooltip({
track: true
});
$("#box").draggable({
drag: function(event,ui){
$(this).tooltip( "option", "content", ""+ui.position.top );
}
});