RuneScape is packet based and there are tools for inspecting packets. I wonder if these tools can give some insight to Claude Code.
The only thing is you would need a description of the worlmap on each tick (i.e. where npcs are, where objects are, where players are)