You can initiate a drag from the Composition Browser and drop it on a label on the tool UI, linking the source and target attributes with an expression.