You can add an anvil inventory to a player. But, the default size for the anvil inventory is 2, 1 input, 1 material , is it possible to add a third which is the result?
The result slot doesn't actually exist, it's not an inventory slot. It's like crafting - the crafting grid output slot is not an inventory slot either, it's just somewhere you take the item from.