We see this trope in comics and manga, and also in cyberpunk fiction, where characters have weapons integrated onto prosthetics, like arm cannons. It can sometimes even be a bit absurd, where guns are integrated onto people's heads, legs, chest, etc.
What were the earliest examples of this in fiction? I'm only looking for prosthetics integrating guns, as many have pointed out that variants like integrated swords or hooks have been around for a long time.