From the Misc Peripherals post...
add(amount): Adds XP from XP bottles or monster eggs, using amount (optional, defaults to as much as possible) of the item in the current slot. Returns the amount of XP added.
get(): Returns the total amount of XP on the turtle.
getLevels(): Returns the...