It acts as the direct object of 'told'.
Previous Question
Which is a noun phrase?
Next Question
Identify the nouns in: "The book on the table is mine."