Bridge capability reference¶
Envelope version 2. Every message is
{v, id?, at, kind, type, subject?, data}; results add ok and error.
Stability: stable shapes only ever gain fields; experimental may change
or vanish. GET /api/bridge/schema reports this table merged with what is
actually live on the running server.
Every action and query is also a chat command under the word in the Chat
column, gated by a permission node of the same name. Chat accepts key=value
or positional arguments matched to the declared parameters in order, @me
for the caller and @Name for an online player; !commands lists what the
caller may use and ?<command> explains one. The same call is
POST /api/bridge/call over HTTP and pal.call(type, …) from a mod — one
schema drives all three surfaces.
bridge.*¶
| Type | Chat | Kind | Runtime | Stability | Since | Fields | Summary |
|---|---|---|---|---|---|---|---|
bridge.ready |
— | event | agent | stable | 2.0.0 | agent · stringversion · stringenvelope · int |
The in-game agent loaded. Carries its version and the actions it can execute; its absence is what 'no bridge' means. |
bridge.hook |
— | event | agent | stable | 2.0.0 | hook · stringtarget · stringok · bool |
One per engine hook the agent tried to register, reporting whether it is live. A failed hook costs its event type and nothing else. |
bridge.probe |
!probe |
query | agent | experimental | 3.0.0 | on · string · default "player"pal · stringfilter · string |
Which engine functions and properties this build actually exposes on an object, narrowed by substring. Reads the class chain through reflection and calls nothing, so it is safe to point anywhere. This is the answer to a not_supported: it names what does exist, fields included — a value the engine keeps in a property rather than behind a getter is invisible to a function list alone. on: player |
player.*¶
| Type | Chat | Kind | Runtime | Stability | Since | Fields | Summary |
|---|---|---|---|---|---|---|---|
player.chat |
— | event | agent | stable | 1.0.0 | message · string |
A player sent a chat message. The text is untrusted input, capped at 512 characters. |
player.join |
— | event | agent | stable | 1.1.0 | firstThisRun · boolfirstEver · boolfirstSeen · intjoins · int |
A player's character finished initialising after connecting. firstEver, firstSeen and joins come from the agent's own registry, which outlives the event file. |
player.respawn |
— | event | agent | experimental | 2.0.0 | none | A player's character re-initialised right after a death — a respawn, not a join. Heuristic: only emitted when the same player died since their last event. |
player.death |
— | event | agent | stable | 1.1.0 | killer · subject · optional |
A player died. Pals dying are not reported. killer is a full subject when another player did it; attribution is best-effort. |
player.leave |
— | event | agent | stable | 1.1.0 | source · string |
A player disconnected. No hookable disconnect exists on this loader, so the agent notices by watching who is still in the world and reports it within a few seconds rather than instantly. |
player.hour |
— | event | agent | experimental | 4.5.0 | hours · intminutes · int |
A player's counted playtime just completed another full hour. Fired by the same minute-ticker that credits playtime, so it lands within a minute of the boundary and only while they are online. Carries the new hour total and the exact minute count. |
player.item_use |
— | event | agent | experimental | 4.11.0 | count · intslot · stringtarget · string |
A player used an item through the use-on-character path — feeding and healing pals, and eating from their own inventory, all fire it (verified live). The slot and count are known; resolving which item sat in the slot, and the target, is future work. |
player.message |
!message |
action | agent | stable | 1.1.0 | text · string · required |
Send a private system-chat message to one online player. |
player.give_item |
!give_item |
action | agent | stable | 1.1.0 | item · item_id · requiredcount · int · default 1 · 1…9999 |
Hand items to a player. The count is read before and after, so the result says whether they arrived: an unknown item id is reported as a failure rather than a success that added nothing. |
player.teleport |
!teleport |
action | agent | experimental | 2.0.0 | x · numbery · numberz · numberto · string |
Move an online player. The destination is x/y/z coordinates, or another player: to names one and their position is the target — in chat, !teleport to=@Name is 'take me to them' and !teleport @Name to=@me is 'bring them here'. The result reports where they actually landed; a move that went nowhere is a failure, not a success. |
player.heal |
!heal |
action | agent | experimental | 2.0.0 | none | Restore an online player to full: HP back to maximum and a full stomach, shield included where the build exposes it. Reports which of the three actually moved, and why any of them did not. |
player.count_item |
!count_item |
query | agent | experimental | 2.0.0 | item · item_id · required |
How many of an item an online player carries. Money is the item id for gold. |
player.has_item |
!has_item |
query | agent | experimental | 2.0.0 | item · item_id · requiredcount · int · default 1 · 1…999999 |
Whether an online player carries at least count of an item. |
player.set_tag |
!set_tag |
action | agent | stable | 2.0.0 | key · string · requiredvalue · string · required |
Attach a key/value to a player, kept by the agent across restarts. The persistence primitive for 'already got the kit', ranks, notes. |
player.get_tag |
!get_tag |
query | agent | stable | 2.0.0 | key · string · required |
Read one of a player's tags. ok with value null when the tag is unset. |
player.delete_tag |
!delete_tag |
action | agent | stable | 2.0.0 | key · string · required |
Remove a tag from a player. |
player.position |
!position |
query | agent | stable | 2.1.0 | none | The online player's exact world position (Engine Actor location, includes z). |
player.stats |
!player.stats |
query | agent | experimental | 2.5.0 | none | Read an online player's stats — hp/maxHp, hunger/maxHunger, shield/maxShield, sanity, plus level, rank, talent IVs and rank soul upgrades from the save parameter. A stat this build does not expose comes back null rather than absent. |
player.set_stats |
!player.set_stats |
action | agent | experimental | 2.5.0 | hp · number · 0…100000000maxHp · number · 1…100000000hunger · number · 0…1000shield · number · 0…100000maxShield · number · 1…100000level · int · 1…100rank · int · 1…5talentHp · int · 0…100talentMelee · int · 0…100talentShot · int · 0…100talentDefense · int · 0…100rankAttack · int · 0…10rankDefence · int · 0…10rankCraftSpeed · int · 0…10 |
Set any combination of an online player's stats in one call; omitted fields are left alone. Values are absolute, on the same scale player.stats reports — hp is converted to the rate the engine wants using the maximum it reports; asking for more HP than the maximum raises the maximum with it. Combat and work stats (level, rank, talent IVs, rank soul upgrades) are written to the save parameter and replicated — they are pal stats, and a player character is refused them rather than told they applied (player.status_point is the equivalent). Every write is read back: applied lists what changed, unverified what the engine accepted without visibly changing, failed what it refused. |
player.set_immortal |
!set_immortal |
action | agent | experimental | 4.18.0 | on · bool · default true |
Make a player unkillable, or mortal again. Raises DefenseUp so almost nothing gets through, and refills health and stomach on the agent's tick as a backstop; their own defence is remembered and handed back. Stamina is deliberately untouched — the client draws that bar from its own simulation, so a server-side refill only fights it. |
player.set_frozen |
!set_frozen |
action | agent | experimental | 4.20.0 | on · bool · default true |
Hold a player still, or let them go. Movement is simulated on the player's own machine, so a server-side speed of zero does not stop them; the agent anchors them instead and puts them back when they move more than a step. Enforcement rather than prevention: a frozen player can take that step before being returned. |
player.set_flying |
!set_flying |
action | agent | experimental | 4.20.0 | on · bool · default true |
Ask a player's game to start or end flight. The server cannot fly a player on its own — flight is a mode the client enters — so this sends an instruction the optional AdminControlsClient mod acts on. Unverified by design: nothing reports flight back, and without the client mod installed nothing happens. |
player.status_points |
!status_points |
query | agent | experimental | 3.1.0 | none | An online player's status points — the allocation the game computes their max HP, stamina, attack and carry weight from. Names are the game's own; the ones this build answers for are what comes back. |
player.status_point |
!status_point |
action | agent | experimental | 3.1.0 | stat · string · requiredpoints · int · default 1 · 1…1000 |
Spend status points on one of a player's stats, the way a level-up does. This is how a player's max HP goes up: it is computed from the points, not stored, so nothing else can raise it. Additive. stat is the game's own FName for the stat and is passed through verbatim — this build spends through the player controller and exposes no way to read the allocation back, so the result reports which readable stat moved instead. player.status_points lists the names to try. |
player.playtime |
!playtime |
query | agent | experimental | 4.4.0 | none | Minutes a player has actually spent on this server, credited one minute at a time while they are online — a crash costs at most the minute in progress. Also reports the current session's minutes and whether they are online right now. Answers for offline players too: the total is history, not presence. |
player.records |
!records |
query | agent | experimental | 4.26.0 | none | A player's lifetime tallies — pals captured, Paldex entries unlocked, bosses beaten, areas found, fish caught, items crafted. Read from the record the game keeps per player rather than from their body, so it answers for offline players too. bosses is every kind summed, since the game counts normal, tower, raid and predator separately; records carries those apart, along with butchered, rankups and mutations. Each headline counter is a plain field for mods with no JSON parser, and a counter this build does not expose reads 0. |
npc.*¶
| Type | Chat | Kind | Runtime | Stability | Since | Fields | Summary |
|---|---|---|---|---|---|---|---|
npc.spawn |
— | event | agent | experimental | 2.0.0 | species · stringlevel · intrare · bool |
A pal/NPC finished parameter initialisation — fires on world spawns near players. Player characters are filtered out. Throttled to 20 events per second. |
clock.*¶
| Type | Chat | Kind | Runtime | Stability | Since | Fields | Summary |
|---|---|---|---|---|---|---|---|
clock.minute |
— | event | agent | experimental | 4.5.0 | date · stringweekday · stringhour · intminute · int |
The wall-clock minute turned, in server-local time. The event mods schedule real-world things against — a weekday, hour and minute comparison replaces owning a timer. Published within two seconds of the minute boundary. |
clock.day |
— | event | agent | experimental | 4.6.0 | date · stringweekday · string |
The date turned, in server-local time — published at the first minute of the new day. A boot mid-day is not a turn. The event daily things schedule against without stamp arithmetic. |
pal.*¶
| Type | Chat | Kind | Runtime | Stability | Since | Fields | Summary |
|---|---|---|---|---|---|---|---|
pal.spawn |
!spawn |
action | agent | experimental | 2.0.0 | species · item_id · requiredlevel · int · default 10 · 1…100rare · bool · default falsetraits · stringx · numbery · numberz · numberhostile · bool · default false |
Spawn a pal, at explicit coordinates or beside a target player. One of the two is required; with coordinates the pal is placed there and the result reports where it landed. Level, rarity and passive-skill traits apply on spawn. hostile=true additionally turns the new pal on the target player through pal.aggro and reports whether that took. Spawns are not part of the world save: a server restart removes them. The result carries the new pal's id. |
pal.list |
!pal.list |
query | agent | experimental | 2.2.0 | none | Pals currently loaded in the world (players excluded), with species, level and — when the engine exposes it — a stable id usable as a pal.set_hp target. Capped at 100 rows; count reports the true total. |
pal.stats |
!pal.stats |
query | agent | experimental | 2.5.0 | pal · string · required |
Read a loaded pal's stats, targeting the id from pal.list or a pal.spawn result — including level, rank, talent IVs and rank soul upgrades. |
pal.set_stats |
!pal.set_stats |
action | agent | experimental | 2.5.0 | pal · string · requiredhp · number · 0…100000000maxHp · number · 1…100000000hunger · number · 0…1000shield · number · 0…100000maxShield · number · 1…100000level · int · 1…100rank · int · 1…5talentHp · int · 0…100talentMelee · int · 0…100talentShot · int · 0…100talentDefense · int · 0…100rankAttack · int · 0…10rankDefence · int · 0…10rankCraftSpeed · int · 0…10 |
Set any combination of a loaded pal's stats in one call; omitted fields are left alone. Values are absolute, on the same scale pal.stats reports — hp is converted to the rate the engine wants using the maximum it reports; asking for more HP than the maximum raises the maximum with it. Combat and work stats (level, rank, talent IVs, rank soul upgrades) are written to the save parameter and replicated — they are pal stats, and a player character is refused them rather than told they applied (player.status_point is the equivalent). Every write is read back: applied lists what changed, unverified what the engine accepted without visibly changing, failed what it refused. |
pal.aggro |
!aggro |
action | agent | experimental | 2.7.0 | pal · string · requiredamount · int · default 1000 · 1…100000sight · bool · default false |
Make a loaded pal hate a player, so it turns on them and fights. The hate system itself is not callable on this build, so the pal, its controller and its parameter component are searched for a hate function that is, and the engine's own damage path is the last resort. The result names the call that worked; a failure lists the hate-related functions this build does expose. sight=true additionally flips the pal's sensor temperament to attack-on-sight — it then goes for anyone who comes close, not only the caller. |
pal.inspect |
!inspect |
query | agent | experimental | 2.8.0 | pal · string · required |
Diagnostic dump for one loaded pal: its AI controller class, whether a player owns it, otomo flag, spawned type, and whether a hate system exists on it (which is not the same as it hating anyone). Run it on a wild pal and on a spawned one — the difference is why one fights back and the other does not. |
pal.spawn_wild |
!spawn_wild |
action | agent | experimental | 4.8.0 | species · item_idlevel · int · default 15 · 1…100aggressive · bool · default falsekind · string · default "nearest"radius · number · default 50000 · 0…1000000 |
Spawn a real wild pal: one of the world's own spawners near the player fires, so the game itself wires the newcomer — controller, wild group, combat permission. With a species, the spawner's lottery is rewritten for the shot and restored right after; aggressive=true also sets the newcomer's temperament to attack-on-sight. Without a species the spawner rolls its own table; kind=boss prefers an alpha spawner. Contrast pal.spawn, which places a hand-made pal at exact coordinates but outside the world's own wiring. |
pal.force_spawn |
!force_spawn |
action | agent | experimental | 2.9.0 | species · item_idlevel · int · default 15 · 1…100aggressive · bool · default falsekind · string · default "nearest"radius · number · default 50000 · 0…1000000 |
Deprecated alias of pal.spawn_wild — same behavior, kept so existing scripts keep working. |
server.*¶
| Type | Chat | Kind | Runtime | Stability | Since | Fields | Summary |
|---|---|---|---|---|---|---|---|
server.announce |
!announce |
action | agent | stable | 1.0.0 | message · string · required |
Tell everyone online something, as system chat. The agent sends it to each player itself, so a mod in the game can announce without anything outside it. |
permission.*¶
| Type | Chat | Kind | Runtime | Stability | Since | Fields | Summary |
|---|---|---|---|---|---|---|---|
permission.register |
!register |
action | agent | stable | 2.1.0 | mod · string · requirednode · string · requireddescription · stringdefault · string |
A mod registers one permission node it owns, namespaced by its name, with a description and a default effect. Idempotent, and an operator's change to the default in permissions.config outranks it. |
permission.check |
!check |
query | agent | stable | 2.1.0 | node · string · requiredtarget · string |
May this player do this? Resolves user overrides, then groups by weight (the default group answers for players in no group), then the node's default; deny beats allow. Any parameter beyond node is taken as the call being asked about and matched against the winning entry's constraint — 'may spawn, but only Lamball' is one node plus a constraint. |
permission.grant |
!grant |
action | agent | stable | 2.1.0 | node · string · requiredeffect · string · default "allow"constraints · jsonuntil · stringwhere · string |
Set a per-player override: allow or deny a node for this player, optionally constrained ({"species":{"in":[…]}}, {"x":{"min":0,"max":1000}}). Player overrides beat every group. |
permission.revoke |
!revoke |
action | agent | stable | 2.1.0 | node · string · required |
Remove a per-player override, so groups decide again. |
permission.nodes |
!nodes |
query | agent | stable | 2.1.0 | none | Every registered node, grouped by the mod that registered it, with defaults. |
permission.player |
!player |
query | agent | stable | 2.1.0 | none | A player's permission state: their groups, their overrides, and their role tag. |
group.*¶
| Type | Chat | Kind | Runtime | Stability | Since | Fields | Summary |
|---|---|---|---|---|---|---|---|
group.create |
!create |
action | agent | stable | 2.1.0 | name · item_id · requiredtag · stringweight · int · default 0 · 0…1000 |
Create a permission group. tag is the [ROLE] shown in chat when enabled; weight orders groups when a player has several (highest wins). |
group.update |
!update |
action | agent | stable | 2.1.0 | name · item_id · requiredtag · stringweight · int · default 0 · 0…1000 |
Change a group's tag or weight. |
group.delete |
!group.delete |
action | agent | stable | 2.1.0 | name · item_id · required |
Delete a group (the default group cannot be deleted). |
group.set_entry |
!set_entry |
action | agent | stable | 2.1.0 | group · item_id · requirednode · string · requiredeffect · string · default "allow"constraints · jsonuntil · stringwhere · string |
Set one node entry on a group: allow or deny, optionally constrained. Wildcards work ('chatshop.', ''). |
group.remove_entry |
!remove_entry |
action | agent | stable | 2.1.0 | group · item_id · requirednode · string · required |
Remove a node entry from a group. |
group.assign |
!assign |
action | agent | stable | 2.1.0 | group · item_id · required |
Put a player into a group. |
group.unassign |
!unassign |
action | agent | stable | 2.1.0 | group · item_id · required |
Take a player out of a group. |
group.list |
!group.list |
query | agent | stable | 2.1.0 | none | All groups with their entries, weights, tags and member counts. |
location.*¶
| Type | Chat | Kind | Runtime | Stability | Since | Fields | Summary |
|---|---|---|---|---|---|---|---|
location.save |
!save |
action | agent | stable | 2.1.0 | name · string · requiredx · number · requiredy · number · requiredz · number · required |
Save a named world location for the teleport picker. Stand somewhere, read player.position, save it — fast-travel points, arenas, meeting spots. |
location.list |
!location.list |
query | agent | stable | 2.1.0 | none | Saved locations plus boss-spawn positions observed live (source: manual |
location.delete |
!location.delete |
action | agent | stable | 2.1.0 | name · string · required |
Remove a saved location. |
data.*¶
| Type | Chat | Kind | Runtime | Stability | Since | Fields | Summary |
|---|---|---|---|---|---|---|---|
data.collections |
!collections |
query | agent | experimental | 3.2.0 | none | Every collection the agent and its mods have declared, with its owner, storage class and field shape — enough to render one this caller has never heard of. |
data.list |
!data.list |
query | agent | experimental | 3.2.0 | collection · string · required |
Every record in one collection, by its qualified name (owner.name). |
data.get |
!get |
query | agent | experimental | 3.2.0 | collection · string · requiredrecord · string · required |
One record from a collection. ok with record null when it is not there. |
data.set |
!set |
action | agent | experimental | 3.2.0 | collection · string · requiredrecord · string · required |
Write one record. Every parameter beyond collection and record becomes a field on it, so the call carries the shape the collection declared. List-valued fields cannot be set this way yet. |
data.delete |
!data.delete |
action | agent | experimental | 3.2.0 | collection · string · requiredrecord · string · required |
Remove one record from a collection. |