Mojang's Bedrock spider loot table includes a possible spider eye drop in a pool that requires the spider to be killed by a player. The drop is not guaranteed. Cave spiders use that same loot table.
The eye pool includes a Looting adjustment, so its loot behavior is separate from the table's string drops.
In Bedrock Edition, eating a Spider Eye restores 2 hunger points and applies Poison I for 5 seconds. The item definition gives the effect a probability of 100%.
Spider eyes are brewing ingredients; general potion preparation is covered in Brewing.
In Mojang's Bedrock crafting recipe, a Spider Eye combines with a brown mushroom and sugar to make a Fermented Spider Eye. The fermented ingredient is a separate crafted item. This recipe produces the fermented eye, not an ordinary Spider Eye.
The item identifier is minecraft:spider_eye, including in Mojang's Bedrock item definition and spider loot table.
The numeric food restoration, Poison duration and player-kill loot condition above are scoped to Bedrock Edition. Its food definition uses the good saturation category, which is distinct from a numeric saturation value.