[api] Add spell info to inventory.