Agent Actions Reference
This page documents all 23 actions available to ElizaOS agents in Hyperscape. Actions are the executable commands that agents use to interact with the game world.Actions are defined in
packages/plugin-hyperscape/src/actions/. As of PR #628, agents use a THINKING+ACTION format for transparent decision-making.Action Categories
Movement
6 actions for navigation
Combat
3 actions for fighting
Skills
5 actions for gathering/crafting
Inventory
4 actions for item management
Social
1 action for communication
Banking
2 actions for storage
Goals
2 actions for planning
World Interaction
1 action for world objects
Movement Actions
moveTo
Move to specific coordinates.
followEntity
Follow another player or NPC.
stopMovement
Stop all movement.
- Movement Cancellation: Sends
cancel: trueflag to clear server-side path - Immediate Stop: Prevents “walking in place” bug
- Path Clearing: Removes queued movement commands
explore
Explore the surrounding area.
approachEntity
Move closer to an entity for interaction.
navigateTo
Navigate to a named location.
- Named Locations: Use location names instead of coordinates
- Distance Stepping: Automatically handles server’s 200-tile movement limit
- Moves in 150-tile steps for safety margin
- Shows progress: “Moving towards bank (50 units remaining)”
- Multi-Step Navigation: Continues moving until destination reached
- Calculates intermediate waypoint (150 tiles toward destination)
- Moves to waypoint
- On next tick, continues toward destination
- Repeats until destination reached
Combat Actions
attackEntity
Attack a target entity.
changeCombatStyle
Change combat style for XP distribution.
flee
Escape from combat.
Skill Actions
chopTree
Chop a tree for logs.
mineRock
Mine a rock for ore.
Added in PR #628 to support mining skill training for AI agents.
catchFish
Catch fish at a fishing spot.
lightFire
Light logs to create a fire.
cookFood
Cook raw food on a fire.
mineRock
Mine a rock to gather ore.
- Automatically walks to nearest cardinal-adjacent tile
- Validates Mining level requirements for rock type
- Filters out depleted rocks
- Handles copper, tin, iron, coal, mithril, adamant, rune ores
Inventory Actions
equipItem
Equip an item from inventory.
useItem
Use a consumable item.
dropItem
Drop an item on the ground.
- Drop All: Use “drop all” to drop entire inventory
- Drop All Type: Use “drop all logs” to drop all items of a specific type
- Smart Matching: Uses word-boundary scoring to match correct items
- Safety Limits: Max 50 items per drop-all operation
- Failure Protection: Stops after 3 consecutive failures
pickupItem
Pick up an item from the ground.
- Smart Matching: Word-boundary scoring prevents false matches
- Auto-Walk: Automatically walks to items beyond pickup range (4m)
- Distance Stepping: Handles server’s 200-tile movement limit
- Nearest Fallback: Picks nearest item if no name match
typescript\n// Prevents "bronze pickaxe" matching "bronze hatchet"\n"Bronze Pickaxe" → "pick up bronze pickaxe" = 30 points (both words match)\n"Bronze Hatchet" → "pick up bronze pickaxe" = 15 points (only "bronze" matches)\n// Agent picks the item with highest score\n
Examples:
\n"pick up bronze pickaxe" → Walks to and picks up Bronze Pickaxe (not Hatchet)\n"grab that sword" → Picks up nearest sword\n"loot the coins" → Picks up Coins\n
Social Actions
chatMessage
Send a chat message.
Banking Actions
bankDeposit
Deposit items into bank.
bankWithdraw
Withdraw items from bank.
Goal Actions
setGoal
Set a new goal using LLM with goal templates.
-
Goal Templates Provider supplies scored goal options:
woodcutting_basics- Chop trees for logsmining_basics- Mine rocks for orecombat_training_goblins- Fight goblinsbronze_gear_chain- Mine → smelt → smithacquire_starter_tools- Get basic tools- And more…
-
LLM selects best goal based on:
- Current skills and levels
- Inventory contents
- Nearby resources
- Combat readiness
- Recent goal history (diversity penalty)
- Goal is set with target, progress tracking, and location
combat_training- Train combat skillswoodcutting- Train woodcuttingmining- Train miningsmithing- Smelt and smithfishing- Catch fishfiremaking- Burn logscooking- Cook foodexploration- Discover areasstarter_items- Get basic tools
When goals are paused (via dashboard Stop button), SET_GOAL is automatically blocked and replaced with IDLE. This prevents agents from auto-selecting new goals until the user resumes or sets a manual goal.
idle
Wait without taking action.
- Movement Cancellation: Stops current movement with
cancel: trueflag - Pause State: Used when goals are paused by user
- Observation Mode: Agent stands still and observes surroundings
World Interaction Actions
lootStarterChest
Interact with the starter chest to get starter equipment.
- Bronze hatchet (woodcutting)
- Bronze pickaxe (mining)
- Tinderbox (firemaking)
- Small fishing net (fishing)
- Bread x5 (food)
World Interaction Actions
lootStarterChest
Loot the starter chest for basic tools (one-time per character).
- Bronze hatchet (woodcutting)
- Bronze pickaxe (mining)
- Tinderbox (firemaking)
- Small fishing net (fishing)
- Shrimp x5 (food)
(5, 0, -20)
Behavior: If chest not nearby, agent walks to known location first.
Added in PR #628 to help new agents bootstrap their equipment.
Action Execution
Actions are executed through the HyperscapeService:Action Selection (THINKING+ACTION Format)
As of PR #628, agents use a structured decision format:Selection Pipeline
- Providers - Gather game context (10 providers)
- Compose State - Merge provider data
- Evaluators - Assess opportunities (5 evaluators)
- LLM Prompt - Build action selection prompt with OSRS common sense rules
- LLM Response - Generate THINKING+ACTION
- Parse - Extract reasoning and action name
- Validate - Check if action is possible
- Execute - Perform action via HyperscapeService