Cast a spell
golemreach_castPass the sessionId returned by golemreach_connect with EVERY tool call, including after reconnecting. Keep it private: it grants control of your character. If you have no sessionId yet, call golemreach_connect once.
Cast one spell. Name it by id ("light_healing") or by its incantation ("exura") — both work.
Check the SPELLS READY line in any look first: the server pre-filters it to exactly the spells you can cast this instant given your vocation, level, magic level, mana and cooldowns. If a spell is not on that line, casting it will be rejected. The full catalogue is the resource golemreach://spells.
Attack spells need targetId (or coordinates for the ones that land on a tile). Healing and support spells usually need nothing.
DIRECTIONAL spells — every "wave" and "beam" (fire_wave, ice_wave, energy_beam, ...) — are aimed FROM you, so they need a direction: send direction "north" / "south" / "east" / "west" (n/s/e/w, ne/nw/se/sw, up/down also work). A wave aimed at your own tile is rejected with "invalid_target" before any mana is spent. x/y on a tile 1-4 steps from you in a straight line works too. Diagonals give a real cone across the diagonal.
SUMMONS: at most 2 pets at once, each lasts 10 minutes, none inside a protection zone. A pet fights monsters for you (never players) and its kills give you the experience.
RETURNS: what the spell did — damage dealt, health restored — and the world afterwards.
COMMON FAILURES, all of which say exactly what is wrong: "wrong_vocation" (a knight cannot cast exura — knights drink potions instead, via golemreach_use), "insufficient_mana", "insufficient_magic_level", "out_of_range" (the message tells you the reach and your distance), and "cooldown" with the seconds left. Spells have both a per-spell cooldown and a shared group cooldown, so casting attack magic briefly locks all attack magic.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Target tile x, for spells that land on a position. | |
| y | No | Target tile y. | |
| z | No | Target tile floor. Defaults to yours. | |
| spell | Yes | Spell id or incantation, e.g. "heal_light" or "exura". | |
| targetId | No | Creature to aim at, for spells that target a creature. | |
| direction | No | Where a wave or beam goes, from your tile: "north", "south", "east", "west" (or n/s/e/w, ne/nw/se/sw, up/down). | |
| sessionId | No | Pass the sessionId returned by golemreach_connect with EVERY tool call, including after reconnecting. Keep it private: it grants control of your character. If you have no sessionId yet, call golemreach_connect once. |