{
  "api_version": "2.13",
  "client_version": "15.24",
  "functions": [
    {
      "name": "baku.api_version",
      "category": "Postać i świat",
      "signature": "api_version() -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.capability",
      "category": "Postać i świat",
      "signature": "capability(name) -> {supported,ready,status}",
      "description": "UserLuaRuntime/PublicApi projection; {supported,ready,status}",
      "details": {
        "Argumenty": "case-sensitive exact canonical key",
        "Wynik": "{supported,ready,status}",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.snapshot",
      "category": "Postać i świat",
      "signature": "snapshot() -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.player",
      "category": "Postać i świat",
      "signature": "player() -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.position",
      "category": "Postać i świat",
      "signature": "position() -> table",
      "description": "SelfIndex/ScriptReadFrame; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.status",
      "category": "Postać i świat",
      "signature": "status() -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.target",
      "category": "Postać i świat",
      "signature": "target() -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.creatures",
      "category": "Postać i świat",
      "signature": "creatures() -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.item",
      "category": "Postać i świat",
      "signature": "item(item_id) -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "item_id 0..65535",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.find_items",
      "category": "Postać i świat",
      "signature": "find_items(item_id) -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "item_id 1..65535",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.containers",
      "category": "Postać i świat",
      "signature": "containers() -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.loot",
      "category": "Postać i świat",
      "signature": "loot() -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.chat",
      "category": "Postać i świat",
      "signature": "chat() -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.channels",
      "category": "Postać i świat",
      "signature": "channels() -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.look",
      "category": "Postać i świat",
      "signature": "look() -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.alarm",
      "category": "Postać i świat",
      "signature": "alarm() -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.effect",
      "category": "Postać i świat",
      "signature": "effect() -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.social",
      "category": "Postać i świat",
      "signature": "social() -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.npc_trade",
      "category": "Postać i świat",
      "signature": "npc_trade() -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.player_trade",
      "category": "Postać i świat",
      "signature": "player_trade() -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.market",
      "category": "Postać i świat",
      "signature": "market() -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.resources",
      "category": "Postać i świat",
      "signature": "resources() -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.progression",
      "category": "Postać i świat",
      "signature": "progression() -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.module",
      "category": "Postać i świat",
      "signature": "module(name) -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "one of ten module names",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.diagnostic",
      "category": "Postać i świat",
      "signature": "diagnostic(name) -> result",
      "description": "Jawne UNSUPPORTED: maintenance modułu nie jest publiczną diagnostyką skryptu. Użyj baku.log.",
      "details": {
        "Argumenty": "See signature and typed selector variants; timeout 500..15000 ms where accepted",
        "Wynik": "result",
        "Potwierdzenie": "Always returns status=UNSUPPORTED; performs no maintenance."
      }
    },
    {
      "name": "baku.action_result",
      "category": "Postać i świat",
      "signature": "action_result(intent_id) -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "intent_id 1..9223372036854775807",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NOT_OBSERVABLE unless a canonical executor already owns proof; success means command execution, never universal physical success"
      }
    },
    {
      "name": "baku.tile",
      "category": "Postać i świat",
      "signature": "tile(x: integer, y: integer, z: integer) -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "x/y 0..65535, z 0..15",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.spell",
      "category": "Postać i świat",
      "signature": "spell(id: integer) -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "id 1..65535",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.setting",
      "category": "Postać i świat",
      "signature": "setting(key: string) -> string | nil",
      "description": "ScriptRegistry; string | nil",
      "details": {
        "Argumenty": "[a-z0-9_]{1,48}",
        "Wynik": "string | nil",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.item_count",
      "category": "Postać i świat",
      "signature": "item_count(id: integer) -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "id 1..65535",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.equipment",
      "category": "Postać i świat",
      "signature": "equipment() -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.cooldown",
      "category": "Postać i świat",
      "signature": "cooldown(spell_id: integer) -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "spell_id 1..65535",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.spell_by_name",
      "category": "Postać i świat",
      "signature": "baku.spell_by_name(name: string) -> table",
      "description": "PublicApi / MagicCatalog / NativeSpellCooldown / CombatStateCache; {status,found?,id?,primary_group?,secondary_group?} or {status,known,ready?,remaining_ms?,session_generation}; absent individual/group authority => UNAVAILABLE",
      "details": {
        "Argumenty": "name: string",
        "Wynik": "{status,found?,id?,primary_group?,secondary_group?} or {status,known,ready?,remaining_ms?,session_generation}; absent individual/group authority => UNAVAILABLE",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.spell_by_words",
      "category": "Postać i świat",
      "signature": "baku.spell_by_words(words: string) -> table",
      "description": "PublicApi / MagicCatalog / NativeSpellCooldown / CombatStateCache; {status,found?,id?,primary_group?,secondary_group?} or {status,known,ready?,remaining_ms?,session_generation}; absent individual/group authority => UNAVAILABLE",
      "details": {
        "Argumenty": "words: string",
        "Wynik": "{status,found?,id?,primary_group?,secondary_group?} or {status,known,ready?,remaining_ms?,session_generation}; absent individual/group authority => UNAVAILABLE",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.spell_groups",
      "category": "Postać i świat",
      "signature": "baku.spell_groups(spell_id: integer) -> table",
      "description": "PublicApi / MagicCatalog / NativeSpellCooldown / CombatStateCache; {status,found?,id?,primary_group?,secondary_group?} or {status,known,ready?,remaining_ms?,session_generation}; absent individual/group authority => UNAVAILABLE",
      "details": {
        "Argumenty": "spell_id: integer",
        "Wynik": "{status,found?,id?,primary_group?,secondary_group?} or {status,known,ready?,remaining_ms?,session_generation}; absent individual/group authority => UNAVAILABLE",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.spell_ready",
      "category": "Postać i świat",
      "signature": "baku.spell_ready(spell_id: integer) -> table",
      "description": "PublicApi / MagicCatalog / NativeSpellCooldown / CombatStateCache; {status,found?,id?,primary_group?,secondary_group?} or {status,known,ready?,remaining_ms?,session_generation}; absent individual/group authority => UNAVAILABLE",
      "details": {
        "Argumenty": "spell_id: integer",
        "Wynik": "{status,found?,id?,primary_group?,secondary_group?} or {status,known,ready?,remaining_ms?,session_generation}; absent individual/group authority => UNAVAILABLE",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.distance",
      "category": "Postać i świat",
      "signature": "baku.distance(x1: integer, y1: integer, z1: integer, x2: integer, y2: integer, z2: integer) -> table",
      "description": "PublicApi / WorldMapIndex; pure distance; unavailable arbitrary route/LOS query; {status,distance?} or {status,known,walkable?}; arbitrary reachable/shootable => FAIL_CLOSED",
      "details": {
        "Argumenty": "x1: integer, y1: integer, z1: integer, x2: integer, y2: integer, z2: integer",
        "Wynik": "{status,distance?}",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.is_walkable",
      "category": "Postać i świat",
      "signature": "baku.is_walkable(x: integer, y: integer, z: integer) -> table",
      "description": "PublicApi / WorldMapIndex; pure distance; unavailable arbitrary route/LOS query; {status,distance?} or {status,known,walkable?}; arbitrary reachable/shootable => FAIL_CLOSED",
      "details": {
        "Argumenty": "x: integer, y: integer, z: integer",
        "Wynik": "{status,known,walkable?}",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.is_reachable",
      "category": "Postać i świat",
      "signature": "baku.is_reachable(... ignored; always fail-closed) -> table",
      "description": "PublicApi / WorldMapIndex; pure distance; unavailable arbitrary route/LOS query; {status,distance?} or {status,known,walkable?}; arbitrary reachable/shootable => FAIL_CLOSED",
      "details": {
        "Argumenty": "... ignored; always fail-closed",
        "Wynik": "{status=\"FAIL_CLOSED\",ready=false,reason}",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.is_shootable",
      "category": "Postać i świat",
      "signature": "baku.is_shootable(... ignored; always fail-closed) -> table",
      "description": "PublicApi / WorldMapIndex; pure distance; unavailable arbitrary route/LOS query; {status,distance?} or {status,known,walkable?}; arbitrary reachable/shootable => FAIL_CLOSED",
      "details": {
        "Argumenty": "... ignored; always fail-closed",
        "Wynik": "{status=\"FAIL_CLOSED\",ready=false,reason}",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.script_state",
      "category": "Postać i świat",
      "signature": "script_state(script_id) -> {status,found,script_id?,name?,filename?,icon_id?,required_api?,enabled?,registered?,quarantined?,user_owned?,generation?,session_generation?,runs?,load_status?,run_status?}",
      "description": "Odczyt bieżącego stanu wskazanego skryptu z canonical Script Managera.",
      "details": {
        "Argumenty": "script_id; current manager state on game thread",
        "Wynik": "{status,found,script_id?,enabled?,registered?,quarantined?,generation?}",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.text_find",
      "category": "Postać i świat",
      "signature": "baku.text_find(text, needle [, start]) -> first|nil,last|nil",
      "description": "Bounded literal byte search, 1-based UTF-8 byte offsets; bez wzorców/regex i bez Lua string stdlib.",
      "details": {
        "Argumenty": "text, needle <=1024 B; optional start is 1-based byte index",
        "Wynik": "first,last byte positions or nil,nil",
        "Potwierdzenie": "pure bounded result; no mutation, scheduler or client side effect"
      }
    },
    {
      "name": "baku.text_sub",
      "category": "Postać i świat",
      "signature": "baku.text_sub(text, first [, last]) -> string",
      "description": "Bounded wycinek tekstu po 1-based byte offsets; zachowuje bajty UTF-8, nie interpretuje znaków Unicode.",
      "details": {
        "Argumenty": "text<=1024 B; first>=1; last defaults to byte length",
        "Wynik": "string <=1024 B",
        "Potwierdzenie": "pure bounded result; no mutation, scheduler or client side effect"
      }
    },
    {
      "name": "baku.text_trim_ascii",
      "category": "Postać i świat",
      "signature": "baku.text_trim_ascii(text) -> string",
      "description": "Usuwa wyłącznie ASCII whitespace z początku/końca; bounded 1024 B.",
      "details": {
        "Argumenty": "text<=1024 B",
        "Wynik": "trimmed string",
        "Potwierdzenie": "pure bounded result; no mutation, scheduler or client side effect"
      }
    },
    {
      "name": "baku.text_lower_ascii",
      "category": "Postać i świat",
      "signature": "baku.text_lower_ascii(text) -> string",
      "description": "Zmienia A-Z na a-z, pozostałe bajty zachowuje bez zmian; deterministic/bounded.",
      "details": {
        "Argumenty": "text<=1024 B",
        "Wynik": "ASCII-lowercased string",
        "Potwierdzenie": "pure bounded result; no mutation, scheduler or client side effect"
      }
    },
    {
      "name": "baku.text_starts_with",
      "category": "Postać i świat",
      "signature": "baku.text_starts_with(text,prefix) -> boolean",
      "description": "Literalny bounded test prefiksu, bez regex.",
      "details": {
        "Argumenty": "text,prefix<=1024 B",
        "Wynik": "boolean",
        "Potwierdzenie": "pure bounded result; no mutation, scheduler or client side effect"
      }
    },
    {
      "name": "baku.text_ends_with",
      "category": "Postać i świat",
      "signature": "baku.text_ends_with(text,suffix) -> boolean",
      "description": "Literalny bounded test sufiksu, bez regex.",
      "details": {
        "Argumenty": "text,suffix<=1024 B",
        "Wynik": "boolean",
        "Potwierdzenie": "pure bounded result; no mutation, scheduler or client side effect"
      }
    },
    {
      "name": "baku.now_ms",
      "category": "Postać i świat",
      "signature": "baku.now_ms() -> integer",
      "description": "Monotoniczny zegar hosta w ms do cooldown/debounce; epoka nie jest wall-clock i nie jest utrwalana.",
      "details": {
        "Argumenty": "no arguments",
        "Wynik": "monotonic milliseconds",
        "Potwierdzenie": "pure bounded result; no mutation, scheduler or client side effect"
      }
    },
    {
      "name": "baku.text_contains",
      "category": "Postać i świat",
      "signature": "baku.text_contains(text,needle)->bool",
      "description": "Bounded literal text containment, max 1024 B.",
      "details": {
        "Argumenty": "text,needle <=1024 B",
        "Wynik": "boolean",
        "Potwierdzenie": "pure bounded result; no mutation, scheduler or client side effect"
      }
    },
    {
      "name": "baku.text_split_once",
      "category": "Postać i świat",
      "signature": "baku.text_split_once(text,separator)->left,right|nil",
      "description": "Bounded first literal split.",
      "details": {
        "Argumenty": "text,separator <=1024 B",
        "Wynik": "two values",
        "Potwierdzenie": "pure bounded result; no mutation, scheduler or client side effect"
      }
    },
    {
      "name": "baku.text_replace",
      "category": "Postać i świat",
      "signature": "baku.text_replace(text,from,to[,max])->text,count",
      "description": "Bounded literal replacement; max 64 replacements/output 1024 B.",
      "details": {
        "Argumenty": "text/from/to <=1024 B; max 0..64",
        "Wynik": "text,count",
        "Potwierdzenie": "pure bounded result; no mutation, scheduler or client side effect"
      }
    },
    {
      "name": "baku.text_format",
      "category": "Postać i świat",
      "signature": "baku.text_format(format,...)->text",
      "description": "Bounded formatter supporting %s %d %0Nd %f and %% without Lua string stdlib.",
      "details": {
        "Argumenty": "format <=1024 bytes; %s accepts string/number/bool up to96 bytes, %d signed64 with width0..32, %f fixed3 decimals with numeric representation <=127 bytes; %% literal percent; total output <=1024 bytes; oversized numeric representation raises Lua error",
        "Wynik": "string",
        "Potwierdzenie": "pure bounded result; no mutation, scheduler or client side effect"
      }
    },
    {
      "name": "baku.list_insert",
      "category": "Postać i świat",
      "signature": "baku.list_insert(table,[pos,]value)->pos",
      "description": "Bounded array insertion, max 128 items.",
      "details": {
        "Argumenty": "array table; optional 1-based position",
        "Wynik": "position",
        "Potwierdzenie": "Mutates input Lua array in-place; no host/gameplay mutation."
      }
    },
    {
      "name": "baku.list_remove",
      "category": "Postać i świat",
      "signature": "baku.list_remove(table[,pos])->value|nil",
      "description": "Bounded array removal, max 128 items.",
      "details": {
        "Argumenty": "array table; optional 1-based position",
        "Wynik": "removed value|nil",
        "Potwierdzenie": "Mutates input Lua array in-place; no host/gameplay mutation."
      }
    },
    {
      "name": "baku.list_concat",
      "category": "Postać i świat",
      "signature": "baku.list_concat(table,separator)->text",
      "description": "Bounded array concatenation, max 128 items/output 1024 B.",
      "details": {
        "Argumenty": "array table, separator",
        "Wynik": "string",
        "Potwierdzenie": "pure bounded result; no mutation, scheduler or client side effect"
      }
    },
    {
      "name": "baku.list_sort",
      "category": "Postać i świat",
      "signature": "baku.list_sort(table[,descending])->table",
      "description": "Sortowanie leksykalne w miejscu, max 128 wartości. String/number/bool są zamieniane na string; to nie jest numeric table.sort.",
      "details": {
        "Argumenty": "array table, optional boolean",
        "Wynik": "same table",
        "Potwierdzenie": "Mutates input Lua array in-place; no host/gameplay mutation; returns the same array with string values."
      }
    },
    {
      "name": "baku.math_abs",
      "category": "Postać i świat",
      "signature": "baku.math_abs(number)->number",
      "description": "Bounded numeric absolute value.",
      "details": {
        "Argumenty": "number",
        "Wynik": "number",
        "Potwierdzenie": "pure bounded result; no mutation, scheduler or client side effect"
      }
    },
    {
      "name": "baku.math_floor",
      "category": "Postać i świat",
      "signature": "baku.math_floor(number)->number",
      "description": "Bounded numeric floor.",
      "details": {
        "Argumenty": "number",
        "Wynik": "number",
        "Potwierdzenie": "pure bounded result; no mutation, scheduler or client side effect"
      }
    },
    {
      "name": "baku.math_min",
      "category": "Postać i świat",
      "signature": "baku.math_min(...)->number",
      "description": "Minimum of provided numeric arguments within host call budget.",
      "details": {
        "Argumenty": "one or more numbers",
        "Wynik": "number",
        "Potwierdzenie": "pure bounded result; no mutation, scheduler or client side effect"
      }
    },
    {
      "name": "baku.math_max",
      "category": "Postać i świat",
      "signature": "baku.math_max(...)->number",
      "description": "Maximum of provided numeric arguments within host call budget.",
      "details": {
        "Argumenty": "one or more numbers",
        "Wynik": "number",
        "Potwierdzenie": "pure bounded result; no mutation, scheduler or client side effect"
      }
    },
    {
      "name": "baku.date_format",
      "category": "Postać i świat",
      "signature": "baku.date_format(unix_time,format)->text",
      "description": "Bounded local date formatting; format <=64 B/output <=127 B.",
      "details": {
        "Argumenty": "unix seconds, strftime-style format <=64 B",
        "Wynik": "string",
        "Potwierdzenie": "pure bounded result; no mutation, scheduler or client side effect"
      }
    },
    {
      "name": "baku.hotkey_parse",
      "category": "Postać i świat",
      "signature": "baku.hotkey_parse(text)->{status,key,mods}",
      "description": "Parses bounded human hotkey combination without synthetic key injection.",
      "details": {
        "Argumenty": "CTRL/ALT/SHIFT/WIN + A-Z/0-9/F1-F12",
        "Wynik": "{status,key,mods}",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.creature_by_id",
      "category": "Postać i świat",
      "signature": "creature_by_id(id) -> {status,ready,found,complete,matches,generation,session_generation,creature?}",
      "description": "Lookup in bounded shared invocation frame. Absence is conclusive only if complete=true.",
      "details": {
        "Argumenty": "id: integer 1..4294967295",
        "Wynik": "{status,ready,found,complete,matches,generation,session_generation,creature?}",
        "Potwierdzenie": "NONE; read only"
      }
    },
    {
      "name": "baku.creature_by_name",
      "category": "Postać i świat",
      "signature": "creature_by_name(name) -> {status,ready,found,complete,matches,generation,session_generation,creature?}",
      "description": "Exact name match; first matching row plus matches count. No independent native scan.",
      "details": {
        "Argumenty": "name: string, exact case-sensitive UTF-8",
        "Wynik": "{status,ready,found,complete,matches,generation,session_generation,creature?}",
        "Potwierdzenie": "NONE; read only"
      }
    },
    {
      "name": "baku.container",
      "category": "Postać i świat",
      "signature": "container(index) -> {status,ready,found,complete,session_generation,container?}",
      "description": "Lookup in existing bounded frame. Container IDs are not Lua array positions.",
      "details": {
        "Argumenty": "index: integer 0..255",
        "Wynik": "{status,ready,found,complete,session_generation,container?}",
        "Potwierdzenie": "NONE; read only"
      }
    },
    {
      "name": "baku.modules",
      "category": "Postać i świat",
      "signature": "modules() -> array<{name,supported,requested,applied,pending,needs_wake}>",
      "description": "Current canonical module requested/applied state; fresh after a control-plane change.",
      "details": {
        "Argumenty": "none",
        "Wynik": "array<{name,supported,requested,applied,pending,needs_wake}>",
        "Potwierdzenie": "NONE; read only"
      }
    },
    {
      "name": "baku.config",
      "category": "Postać i świat",
      "signature": "config(section) -> {status,ready,generation,total,truncated,semantics,entries:array<{key,value,type,truncated}>}",
      "description": "Bounded, sorted published input values, max64 entries /1024 value bytes. Read-only; strings are not effective engine clamps. No file fallback.",
      "details": {
        "Argumenty": "section: public canonical config section or script.<own id>",
        "Wynik": "{status,ready,generation,total,truncated,semantics,entries:array<{key,value,type,truncated}>}",
        "Potwierdzenie": "NONE; read only"
      }
    },
    {
      "name": "baku.profile_state",
      "category": "Postać i świat",
      "signature": "profile_state() -> {status,config_generation,session_generation,character,character_known,profile?,scope}",
      "description": "Active published profile identity for current character; no path traversal, file read or profile switch.",
      "details": {
        "Argumenty": "none",
        "Wynik": "{status,config_generation,session_generation,character,character_known,profile?,scope}",
        "Potwierdzenie": "NONE; read only"
      }
    },
    {
      "name": "baku.scripts",
      "category": "Postać i świat",
      "signature": "scripts() -> array<ScriptMetadata>",
      "description": "All manager entries max32: name, filename, icon, required API, runs, load/run state, session/generation and flags. No executable source exposure.",
      "details": {
        "Argumenty": "none",
        "Wynik": "array<ScriptMetadata>",
        "Potwierdzenie": "NONE; read only"
      }
    },
    {
      "name": "baku.script_callbacks",
      "category": "Postać i świat",
      "signature": "script_callbacks() -> array<{token,event_id,repeat,hud_handle,waypoint_number}>",
      "description": "Current VM owned callback metadata max8. No new scheduler/registration or callback execution.",
      "details": {
        "Argumenty": "none",
        "Wynik": "array<{token,event_id,repeat,hud_handle,waypoint_number}>",
        "Potwierdzenie": "NONE; read only"
      }
    },
    {
      "name": "baku.movement_result",
      "category": "Postać i świat",
      "signature": "movement_result(intent_id) -> {status,found,terminal,execution_success,intent_id,command_id,action,command_state,script_generation,session_generation,stale_owner,postcondition,qualification}",
      "description": "Existing movement result facade. Executor success does not attest unobserved physical postcondition. Old owned generations readable with stale_owner flag.",
      "details": {
        "Argumenty": "intent_id: positive Lua integer, owned by calling script",
        "Wynik": "{status,found,terminal,execution_success,intent_id,command_id,action,command_state,script_generation,session_generation,stale_owner,postcondition,qualification}",
        "Potwierdzenie": "Explicit executor postcondition only when broker proves it; otherwise NOT_OBSERVABLE"
      }
    },
    {
      "name": "baku.combat_result",
      "category": "Postać i świat",
      "signature": "combat_result(intent_id) -> {status,found,terminal,execution_success,intent_id,command_id,action,command_state,script_generation,session_generation,stale_owner,postcondition,qualification}",
      "description": "Existing combat result facade. Executor success does not attest unobserved physical postcondition. Old owned generations readable with stale_owner flag.",
      "details": {
        "Argumenty": "intent_id: positive Lua integer, owned by calling script",
        "Wynik": "{status,found,terminal,execution_success,intent_id,command_id,action,command_state,script_generation,session_generation,stale_owner,postcondition,qualification}",
        "Potwierdzenie": "Explicit executor postcondition only when broker proves it; otherwise NOT_OBSERVABLE"
      }
    },
    {
      "name": "baku.social_result",
      "category": "Postać i świat",
      "signature": "social_result(intent_id) -> {status,found,terminal,execution_success,intent_id,command_id,action,command_state,script_generation,session_generation,stale_owner,postcondition,qualification}",
      "description": "Existing social result facade. Executor success does not attest unobserved physical postcondition. Old owned generations readable with stale_owner flag.",
      "details": {
        "Argumenty": "intent_id: positive Lua integer, owned by calling script",
        "Wynik": "{status,found,terminal,execution_success,intent_id,command_id,action,command_state,script_generation,session_generation,stale_owner,postcondition,qualification}",
        "Potwierdzenie": "Explicit executor postcondition only when broker proves it; otherwise NOT_OBSERVABLE"
      }
    },
    {
      "name": "baku.commerce_result",
      "category": "Postać i świat",
      "signature": "commerce_result(intent_id) -> {status,found,terminal,execution_success,intent_id,command_id,action,command_state,script_generation,session_generation,stale_owner,postcondition,qualification}",
      "description": "Existing commerce result facade. Executor success does not attest unobserved physical postcondition. Old owned generations readable with stale_owner flag.",
      "details": {
        "Argumenty": "intent_id: positive Lua integer, owned by calling script",
        "Wynik": "{status,found,terminal,execution_success,intent_id,command_id,action,command_state,script_generation,session_generation,stale_owner,postcondition,qualification}",
        "Potwierdzenie": "Explicit executor postcondition only when broker proves it; otherwise NOT_OBSERVABLE"
      }
    },
    {
      "name": "baku.progression_result",
      "category": "Postać i świat",
      "signature": "progression_result(intent_id) -> {status,found,terminal,execution_success,intent_id,command_id,action,command_state,script_generation,session_generation,stale_owner,postcondition,qualification}",
      "description": "Existing progression result facade. Executor success does not attest unobserved physical postcondition. Old owned generations readable with stale_owner flag.",
      "details": {
        "Argumenty": "intent_id: positive Lua integer, owned by calling script",
        "Wynik": "{status,found,terminal,execution_success,intent_id,command_id,action,command_state,script_generation,session_generation,stale_owner,postcondition,qualification}",
        "Potwierdzenie": "Explicit executor postcondition only when broker proves it; otherwise NOT_OBSERVABLE"
      }
    },
    {
      "name": "baku.set_module",
      "category": "Akcje",
      "signature": "set_module(name, enabled) -> result",
      "description": "UserLuaRuntime/PublicApi projection; result",
      "details": {
        "Argumenty": "one of ten module names; strict boolean",
        "Wynik": "result",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.say",
      "category": "Akcje",
      "signature": "say(text) -> receipt",
      "description": "ActionIntentBroker -> Runtime21 TimerLane; receipt",
      "details": {
        "Argumenty": "valid UTF-8, <=95 UTF-16 code units",
        "Wynik": "receipt",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.cast",
      "category": "Akcje",
      "signature": "cast(words) -> receipt",
      "description": "ActionIntentBroker -> Runtime21 TimerLane; receipt",
      "details": {
        "Argumenty": "valid UTF-8, <=95 UTF-16 code units",
        "Wynik": "receipt",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.use",
      "category": "Akcje",
      "signature": "use(item_id) -> receipt",
      "description": "ActionIntentBroker -> Runtime21 TimerLane; receipt",
      "details": {
        "Argumenty": "item_id 1..65535",
        "Wynik": "receipt",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.use_on",
      "category": "Akcje",
      "signature": "use_on(item_id, creature_id) -> receipt",
      "description": "ActionIntentBroker -> Runtime21 TimerLane; receipt",
      "details": {
        "Argumenty": "item_id 1..65535; creature_id 1..4294967295",
        "Wynik": "receipt",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.use_on_target",
      "category": "Akcje",
      "signature": "use_on_target(item_id: integer) -> receipt",
      "description": "ActionIntentBroker -> Runtime21 TimerLane; receipt",
      "details": {
        "Argumenty": "item_id 1..65535",
        "Wynik": "receipt",
        "Potwierdzenie": "DEFERRED/NOT_OBSERVABLE as a universal physical effect; receipt is admission and action_result reports command execution state."
      }
    },
    {
      "name": "baku.use_on_tile",
      "category": "Akcje",
      "signature": "use_on_tile(item_id, x, y, z) -> receipt",
      "description": "ActionIntentBroker -> Runtime21 TimerLane; receipt",
      "details": {
        "Argumenty": "item_id 1..65535; x/y 0..65535; z 0..15",
        "Wynik": "receipt",
        "Potwierdzenie": "DEFERRED/NOT_OBSERVABLE as a universal physical effect; receipt is admission and action_result reports command execution state."
      }
    },
    {
      "name": "baku.use_at",
      "category": "Akcje",
      "signature": "use_at(item_id, location) -> receipt",
      "description": "ActionIntentBroker -> Runtime21 TimerLane; receipt",
      "details": {
        "Argumenty": "item_id 1..65535; location={kind='inventory',slot=1..11}|{kind='container',container=0..255,index>=0}|{kind='world',x,y,z,stack?}",
        "Wynik": "receipt",
        "Potwierdzenie": "DEFERRED/NOT_OBSERVABLE as a universal physical effect; receipt is admission and action_result reports command execution state."
      }
    },
    {
      "name": "baku.use_with",
      "category": "Akcje",
      "signature": "use_with(source_item_id, source_location, target_item_id, target_location) -> receipt",
      "description": "ActionIntentBroker -> Runtime21 TimerLane; receipt",
      "details": {
        "Argumenty": "source/target item_id 1..65535; source/target location tables",
        "Wynik": "receipt",
        "Potwierdzenie": "DEFERRED/NOT_OBSERVABLE as a universal physical effect; receipt is admission and action_result reports command execution state."
      }
    },
    {
      "name": "baku.move_item",
      "category": "Akcje",
      "signature": "move_item(item_id, source_location, destination_location, count) -> receipt",
      "description": "ActionIntentBroker -> Runtime21 TimerLane; receipt",
      "details": {
        "Argumenty": "item_id 1..65535; exact source; destination inventory/container only; count 1..255",
        "Wynik": "receipt",
        "Potwierdzenie": "CONSUMER_OWNED by existing canonical domain owner; Lua action_result does not invent a universal physical postcondition."
      }
    },
    {
      "name": "baku.quick_loot",
      "category": "Akcje",
      "signature": "quick_loot(item_id, world_location) -> receipt",
      "description": "ActionIntentBroker -> Runtime21 TimerLane; receipt",
      "details": {
        "Argumenty": "item_id 1..65535; world location table only",
        "Wynik": "receipt",
        "Potwierdzenie": "CONSUMER_OWNED by existing canonical domain owner; Lua action_result does not invent a universal physical postcondition."
      }
    },
    {
      "name": "baku.equip",
      "category": "Akcje",
      "signature": "equip(item_id, slot [, tier_policy [, subtype_policy]]) -> receipt",
      "description": "ActionIntentBroker -> Runtime21 TimerLane; receipt",
      "details": {
        "Argumenty": "item_id 1..65535; slot 1..11; tier_policy -1..255; subtype_policy -1..65535; tier and subtype policy cannot both be active",
        "Wynik": "receipt",
        "Potwierdzenie": "CONSUMER_OWNED by existing canonical domain owner; Lua action_result does not invent a universal physical postcondition."
      }
    },
    {
      "name": "baku.container_close",
      "category": "Akcje",
      "signature": "container_close(index) -> receipt",
      "description": "ActionIntentBroker -> Runtime21 TimerLane; receipt",
      "details": {
        "Argumenty": "container index 0..255",
        "Wynik": "receipt",
        "Potwierdzenie": "CONSUMER_OWNED by existing canonical domain owner; Lua action_result does not invent a universal physical postcondition."
      }
    },
    {
      "name": "baku.container_up",
      "category": "Akcje",
      "signature": "container_up(index) -> receipt",
      "description": "ActionIntentBroker -> Runtime21 TimerLane; receipt",
      "details": {
        "Argumenty": "container index 0..255",
        "Wynik": "receipt",
        "Potwierdzenie": "CONSUMER_OWNED by existing canonical domain owner; Lua action_result does not invent a universal physical postcondition."
      }
    },
    {
      "name": "baku.container_next_page",
      "category": "Akcje",
      "signature": "container_next_page(index) -> receipt",
      "description": "ActionIntentBroker -> Runtime21 TimerLane; receipt",
      "details": {
        "Argumenty": "container index 0..255",
        "Wynik": "receipt",
        "Potwierdzenie": "CONSUMER_OWNED by existing canonical domain owner; Lua action_result does not invent a universal physical postcondition."
      }
    },
    {
      "name": "baku.container_previous_page",
      "category": "Akcje",
      "signature": "container_previous_page(index) -> receipt",
      "description": "ActionIntentBroker -> Runtime21 TimerLane; receipt",
      "details": {
        "Argumenty": "container index 0..255",
        "Wynik": "receipt",
        "Potwierdzenie": "CONSUMER_OWNED by existing canonical domain owner; Lua action_result does not invent a universal physical postcondition."
      }
    },
    {
      "name": "baku.container_update",
      "category": "Akcje",
      "signature": "container_update(index) -> receipt",
      "description": "ActionIntentBroker -> Runtime21 TimerLane; receipt",
      "details": {
        "Argumenty": "container index 0..255",
        "Wynik": "receipt",
        "Potwierdzenie": "CONSUMER_OWNED by existing canonical domain owner; Lua action_result does not invent a universal physical postcondition."
      }
    },
    {
      "name": "baku.attack",
      "category": "Akcje",
      "signature": "attack(creature_id) -> receipt",
      "description": "ActionIntentBroker -> Runtime21 TimerLane; receipt",
      "details": {
        "Argumenty": "creature_id 1..4294967295",
        "Wynik": "receipt",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.follow",
      "category": "Akcje",
      "signature": "follow(creature_id) -> receipt",
      "description": "ActionIntentBroker -> Runtime21 TimerLane; receipt",
      "details": {
        "Argumenty": "creature_id 1..4294967295",
        "Wynik": "receipt",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.cancel_attack",
      "category": "Akcje",
      "signature": "cancel_attack() -> receipt",
      "description": "ActionIntentBroker -> Runtime21 TimerLane; receipt",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "receipt",
        "Potwierdzenie": "EXECUTOR_OWNED; action_result may report executor-confirmed postcondition for this action."
      }
    },
    {
      "name": "baku.cancel_follow",
      "category": "Akcje",
      "signature": "cancel_follow() -> receipt",
      "description": "ActionIntentBroker -> Runtime21 TimerLane; receipt",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "receipt",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.cancel_attack_follow",
      "category": "Akcje",
      "signature": "cancel_attack_follow() -> receipt",
      "description": "ActionIntentBroker -> Runtime21 TimerLane; receipt",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "receipt",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.step",
      "category": "Akcje",
      "signature": "step(direction) -> receipt",
      "description": "ActionIntentBroker -> Runtime21 TimerLane; receipt",
      "details": {
        "Argumenty": "north/east/south/west/north_east/south_east/south_west/north_west",
        "Wynik": "receipt",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.turn",
      "category": "Akcje",
      "signature": "turn(direction) -> receipt",
      "description": "ActionIntentBroker -> Runtime21 TimerLane; receipt",
      "details": {
        "Argumenty": "north/east/south/west",
        "Wynik": "receipt",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.stop",
      "category": "Akcje",
      "signature": "stop() -> receipt",
      "description": "ActionIntentBroker -> Runtime21 TimerLane; receipt",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "receipt",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.set_tactics",
      "category": "Akcje",
      "signature": "set_tactics(fight, chase, secure, pvp) -> receipt",
      "description": "ActionIntentBroker -> Runtime21 TimerLane; receipt",
      "details": {
        "Argumenty": "fight 1..3, chase 0..1, secure boolean, pvp 0..3",
        "Wynik": "receipt",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.social_action",
      "category": "Akcje",
      "signature": "social_action(action, subject_id, name, timeout_ms) -> receipt",
      "description": "ActionIntentBroker -> Runtime21 TimerLane; receipt",
      "details": {
        "Argumenty": "See signature and typed selector variants; timeout 500..15000 ms where accepted",
        "Wynik": "receipt",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.trade_action",
      "category": "Akcje",
      "signature": "trade_action(action, item_id, amount, flags, timeout_ms) -> receipt",
      "description": "ActionIntentBroker -> Runtime21 TimerLane; receipt",
      "details": {
        "Argumenty": "See signature and typed selector variants; timeout 500..15000 ms where accepted",
        "Wynik": "receipt",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.market_action",
      "category": "Akcje",
      "signature": "market_action(action, item_id, tier, amount, price, offer_type, anonymous, timestamp, counter, timeout_ms) -> receipt",
      "description": "ActionIntentBroker -> Runtime21 TimerLane; receipt",
      "details": {
        "Argumenty": "See signature and typed selector variants; timeout 500..15000 ms where accepted",
        "Wynik": "receipt",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.progression_action",
      "category": "Akcje",
      "signature": "progression_action(action, arg0, arg1, arg2, upgrade, timeout_ms) -> receipt",
      "description": "ActionIntentBroker -> Runtime21 TimerLane; receipt",
      "details": {
        "Argumenty": "See signature and typed selector variants; timeout 500..15000 ms where accepted",
        "Wynik": "receipt",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.delay",
      "category": "Akcje",
      "signature": "delay(ms: integer, callback: function) -> integer",
      "description": "ScriptRegistry; integer",
      "details": {
        "Argumenty": "ms 1000..3600000; callback function; <=8 live tokens/script",
        "Wynik": "integer",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.on",
      "category": "Akcje",
      "signature": "on(event: string, callback: function) -> integer",
      "description": "Rejestracja w ScriptRegistry; callback przez istniejący TimerLane. Payload ctx.event. Rejestracja nie dowodzi dostarczenia eventu z klienta; źródło native wymaga acceptance. Message/Container fanout oraz seed/session guard mają test hostowy, live pozostaje PARTIAL. Subskrypcje dyskretnych eventow nie odtwarzaja danych sprzed rejestracji; TALK/TEXT_MESSAGE zachowują FIFO128 osobnych owned payloadów; inne eventy zachowują latest-edge. Canonical historia128 raportuje brakujące sequence; pełny callback FIFO jawnie odrzuca nowy rekord zamiast nadpisywać przyjęty.",
      "details": {
        "Argumenty": "declared derived event names; callback function; additive follow_changed/position_changed, canonical Self edges, coalesced latest, no kill inference.",
        "Wynik": "integer",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.when",
      "category": "Akcje",
      "signature": "when(event: string, predicate: function, callback: function) -> integer",
      "description": "Rejestracja w ScriptRegistry; callback przez istniejący TimerLane. Payload ctx.event. Rejestracja nie dowodzi dostarczenia eventu z klienta; źródło native wymaga acceptance. Message/Container fanout oraz seed/session guard mają test hostowy, live pozostaje PARTIAL. Subskrypcje dyskretnych eventow nie odtwarzaja danych sprzed rejestracji; pending zachowuje ostatni dokladny payload.",
      "details": {
        "Argumenty": "event, predicate(ctx)->boolean, callback(ctx); <=8 live tokens/script; additive follow_changed/position_changed, canonical Self edges, coalesced latest, no kill inference.",
        "Wynik": "integer",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.on_waypoint",
      "category": "Akcje",
      "signature": "on_waypoint(waypoint_number: integer, callback: function) -> integer",
      "description": "ScriptRegistry + canonical Cave event; integer",
      "details": {
        "Argumenty": "waypoint_number >= 1 (user-visible 1-based); callback function",
        "Wynik": "integer",
        "Potwierdzenie": "NONE; registration only; gameplay actions use Public API -> ActionIntentBroker."
      }
    },
    {
      "name": "baku.cancel",
      "category": "Akcje",
      "signature": "cancel(token: integer) -> boolean",
      "description": "ScriptRegistry; boolean",
      "details": {
        "Argumenty": "uint32 token from same script generation",
        "Wynik": "boolean",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.hotkey",
      "category": "Akcje",
      "signature": "baku.hotkey(vk: integer, modifiers: integer, callback: function) -> table",
      "description": "ScriptRegistry / existing GameThreadIngress WM_HOTKEY / Runtime21 TimerLane; registration={status,token?}; remove returns boolean; OFF/RELOAD/DELETE unregister OS IDs before generation revoke",
      "details": {
        "Argumenty": "vk: integer, modifiers: integer, callback: function",
        "Wynik": "registration={status,token?}; remove returns boolean; OFF/RELOAD/DELETE unregister OS IDs before generation revoke",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.hotkey_remove",
      "category": "Akcje",
      "signature": "baku.hotkey_remove(token: integer) -> boolean",
      "description": "ScriptRegistry / existing GameThreadIngress WM_HOTKEY / Runtime21 TimerLane; registration={status,token?}; remove returns boolean; OFF/RELOAD/DELETE unregister OS IDs before generation revoke",
      "details": {
        "Argumenty": "token: integer",
        "Wynik": "boolean",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.sound",
      "category": "Akcje",
      "signature": "baku.sound(alarm_name_or_supported_alias: string) -> table",
      "description": "AlarmEngine named sound backend; {status}; stop scoped to last script-owned sound; an alarm supersedes script sound",
      "details": {
        "Argumenty": "alarm_name_or_supported_alias: string",
        "Wynik": "{status}; stop scoped to last script-owned sound; an alarm supersedes script sound",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.sound_stop",
      "category": "Akcje",
      "signature": "baku.sound_stop() -> table",
      "description": "AlarmEngine named sound backend; {status}; stop scoped to last script-owned sound; an alarm supersedes script sound",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "{status}; stop scoped to last script-owned sound; an alarm supersedes script sound",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.script_set_enabled",
      "category": "Akcje",
      "signature": "baku.script_set_enabled(script_id, enabled) -> {status,script_id,requested_enabled}",
      "description": "Przełącza wskazany skrypt przez istniejący manager. ON planuje main w istniejącej TimerLane, nie wykonuje reentrant Lua. OFF usuwa jego HUD/callbacki. Sterownik ikony powinien być osobnym włączonym skryptem. Stan jest w RAM; brak autosave.",
      "details": {
        "Argumenty": "script_id, enabled; strict boolean; requires controller RUN owner",
        "Wynik": "{status,script_id,requested_enabled}",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.flash",
      "category": "Akcje",
      "signature": "baku.flash()->table",
      "description": "Flashes the current Tibia process window through existing AlarmEngine window owner; no raw HWND exposed.",
      "details": {
        "Argumenty": "no arguments",
        "Wynik": "{status}",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.quick_loot_area",
      "category": "Akcje",
      "signature": "baku.quick_loot_area([timeout_ms])->receipt",
      "description": "Submits existing semantic QuickLootAreaAtPlayer through canonical ActionIntentBroker; no direct GTQ/client call.",
      "details": {
        "Argumenty": "optional timeout 500..15000",
        "Wynik": "receipt",
        "Potwierdzenie": "CONSUMER_OWNED by existing canonical domain owner; Lua action_result does not invent a universal physical postcondition."
      }
    },
    {
      "name": "baku.module_plan",
      "category": "Akcje",
      "signature": "module_plan(patch) -> {status,accepted,postcondition}",
      "description": "Validate whole patch before canonical ApplyModulePlan. Existing Runtime21 rearm and last-writer-wins; acceptance is requested state, not applied gameplay.",
      "details": {
        "Argumenty": "patch: table of supported module names to strict boolean; omitted retain requested state",
        "Wynik": "{status,accepted,postcondition}",
        "Potwierdzenie": "REQUESTED_STATE; query applied/pending"
      }
    },
    {
      "name": "baku.speak",
      "category": "Akcje",
      "signature": "speak(mode,text,destination?,timeout?) -> {status,intent_id,command_id}",
      "description": "Canonical ACTION.ActionSay admission + appended broker kind; existing ActionApi/Arbiter/GTQ/selected pack execution. No universal speech receive postcondition; no retry.",
      "details": {
        "Argumenty": "mode: normal|whisper|yell|npc|private|channel_yellow|channel_red, text:string (1..95 UTF16 units), destination?:recipient string(1..63 UTF16 units) for private or channel integer0..65535 for channel; nil for others; timeout?:500..15000(default3000)",
        "Wynik": "{status,intent_id,command_id}",
        "Potwierdzenie": "NOT_OBSERVABLE (speech receive)"
      }
    },
    {
      "name": "baku.control_schema",
      "category": "Moduły i profile",
      "signature": "control_schema(domain, options?) -> table",
      "description": "Schemat publicznych pól: typy, enumy, limity oraz stronicowanie.",
      "details": {
        "Argumenty": "domain: exact domain, or \"*\" for domain list. options?: {start=1,limit=64}; limit1..128.",
        "Wynik": "Schema fields without value; \"*\" returns {status,domains}.",
        "Potwierdzenie": "APPLIED/SAVED only after canonical apply/durable write; no claim about subsequent game actions"
      }
    },
    {
      "name": "baku.control_state",
      "category": "Moduły i profile",
      "signature": "control_state(domain, options?) -> table",
      "description": "Opublikowane ustawienia modułu i jego rzeczywisty stan ON/OFF.",
      "details": {
        "Argumenty": "domain: exact domain. options?: {start=1,limit=64}; limit1..128.",
        "Wynik": "Typed published values plus canonical runtime flags; complete page metadata.",
        "Potwierdzenie": "APPLIED/SAVED only after canonical apply/durable write; no claim about subsequent game actions"
      }
    },
    {
      "name": "baku.control_apply",
      "category": "Moduły i profile",
      "signature": "control_apply(domain, patch, expected_generation[, options]) -> table",
      "description": "Zmień ustawienia modułu przez wspólny ConfigAuthority. Cave: ON/OFF osobno; pace_* zapisuje do dokumentu roboczego trasy przy wyłączonym Cave i Recorder oraz aktualnym tokenie trasy. Odczytaj control_result; ACCEPTED nie oznacza zastosowania.",
      "details": {
        "Argumenty": "domain; patch: flat exact typed schema keys; expected_generation: exact current control_state token. Optional fourth options={expected_route_generation=token from cave_route()}. Cave: enabled alone OR a nonempty subset of five pace_* fields. Pace edits require Cave/Recorder OFF, no pending editor/save, v3 working route and current route generation. They commit the working route; explicit GUI Save exports the selected document.",
        "Wynik": "{status=\"ACCEPTED\",accepted=true,operation_id} or {status,reason}. Wait for control_result.",
        "Potwierdzenie": "APPLIED/SAVED only after canonical apply/durable write; no claim about subsequent game actions",
        "Przykład": "local s=baku.control_state(\"cave\")\nlocal route=baku.cave_route()\nlocal r=baku.control_apply(\"cave\",{pace_enabled=true,pace_lure_from=8,pace_fast_again_enabled=true,pace_fast_again_from=12,pace_hysteresis=1},s.config_generation,{expected_route_generation=route.route_generation})\n-- Check r.status, then poll baku.control_result(r.operation_id) in an existing callback.\n-- APPLIED updates the working route. Use Save in Cave to export it."
      }
    },
    {
      "name": "baku.control_result",
      "category": "Moduły i profile",
      "signature": "control_result(operation_id) -> table",
      "description": "Wynik własnej operacji konfiguracji lub pliku.",
      "details": {
        "Argumenty": "operation_id: exact token returned by admission; owner/script generation must match.",
        "Wynik": "Current PENDING or terminal receipt. Last32 terminal receipts per process, not durable history.",
        "Potwierdzenie": "APPLIED/SAVED only after canonical apply/durable write; no claim about subsequent game actions"
      }
    },
    {
      "name": "baku.profiles",
      "category": "Moduły i profile",
      "signature": "profiles(scope, options?) -> table",
      "description": "Rzeczywista lista zapisanych profili wybranego modułu albo całej postaci.",
      "details": {
        "Argumenty": "scope: character|target|magic|heal|equipment|timer|action_rules|support|alarm. options?: {start=1,limit=64,refresh=false}.",
        "Wynik": "Real catalog of current scope; refresh asynchronous. Cave uses cave_routes.",
        "Potwierdzenie": "APPLIED/SAVED only after canonical apply/durable write; no claim about subsequent game actions"
      }
    },
    {
      "name": "baku.profile_load",
      "category": "Moduły i profile",
      "signature": "profile_load(scope, profile_id, options) -> table",
      "description": "Wczytuje ustawienia wybranego profilu; profil modułu zachowuje główne ON/OFF.",
      "details": {
        "Argumenty": "scope; id: exact catalog id. options: {expected_generation=token,file_version=SHA256,discard_unsaved=false}. Whole character load requires all modules OFF and may revoke the calling script.",
        "Wynik": "Admission only; use control_result. Module presets preserve master requested ON/OFF.",
        "Potwierdzenie": "APPLIED/SAVED only after canonical apply/durable write; no claim about subsequent game actions"
      }
    },
    {
      "name": "baku.profile_save",
      "category": "Moduły i profile",
      "signature": "profile_save(scope, name, options) -> table",
      "description": "Zapisuje migawkę ustawień modułu lub postaci do pliku.",
      "details": {
        "Argumenty": "scope; name: 1..96 UTF8 bytes, stem without .json, no path/reserved characters. options: {expected_generation=token,overwrite=false,file_version=SHA256}. Existing filename needs overwrite=true and exact file_version.",
        "Wynik": "SAVED only after atomic durable write. SAVED_NOT_ACTIVATED means file was saved but owner/editor/session changed before metadata activation.",
        "Potwierdzenie": "APPLIED/SAVED only after canonical apply/durable write; no claim about subsequent game actions"
      }
    },
    {
      "name": "baku.module_profiles",
      "category": "Moduły i profile",
      "signature": "module_profiles(domain, options?) -> table",
      "description": "Odczytuje trzy stałe sloty modułu, aktywny slot, stan zmian i wersję dokumentu profilu postaci.",
      "details": {
        "Argumenty": "domain: target/magic/heal/equipment/timer/action_rules. options: {refresh=false}.",
        "Wynik": "{status,domain,active_slot,dirty,items={{slot,name,saved}},config_generation,session_generation,document_ready,file_version,disk_version,file_conflict}. Refresh prepares the on-disk version on the existing worker.",
        "Potwierdzenie": "APPLIED/SAVED only after canonical apply/durable write; no claim about subsequent game actions"
      }
    },
    {
      "name": "baku.module_profile_select",
      "category": "Moduły i profile",
      "signature": "module_profile_select(domain, slot, options) -> table",
      "description": "Przełącza moduł na Profil 1, 2 lub 3 przez wspólną konfigurację GUI/Lua.",
      "details": {
        "Argumenty": "domain; slot: integer 1..3; options: {expected_generation=token,discard_unsaved=false}.",
        "Wynik": "ACCEPTED zawiera operation_id. Oczekuj terminalnego APPLIED przez control_result; zachowuje główny stan modułu z istniejącymi bramkami pustej konfiguracji.",
        "Potwierdzenie": "APPLIED/SAVED only after canonical apply/durable write; no claim about subsequent game actions"
      }
    },
    {
      "name": "baku.module_profile_save",
      "category": "Moduły i profile",
      "signature": "module_profile_save(domain, options) -> table",
      "description": "Zapisuje aktywny slot modułu w bieżącym pełnym profilu postaci.",
      "details": {
        "Argumenty": "domain; options: {expected_generation=token,file_version=module_profiles().file_version}. document_ready musi być true; ABSENT oznacza nowy plik.",
        "Wynik": "ACCEPTED zawiera operation_id. SAVED potwierdza trwały zapis; FILE_CONFLICT wymaga odświeżenia. Nie wymaga osobnego zapisu całego profilu.",
        "Potwierdzenie": "APPLIED/SAVED only after canonical apply/durable write; no claim about subsequent game actions"
      }
    },
    {
      "name": "baku.select_cave_route",
      "category": "Cave i ruch",
      "signature": "select_cave_route(path: string) -> result",
      "description": "PublicApi::RequestScriptCaveRouteOnGameThread -> CaveModuleRuntime; result",
      "details": {
        "Argumenty": "route path/name as a bounded UTF-8 string; generic host string limit applies",
        "Wynik": "result",
        "Potwierdzenie": "Canonical owner acceptance only; does not attest physical movement success."
      }
    },
    {
      "name": "baku.cave",
      "category": "Cave i ruch",
      "signature": "cave() -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.cave_waypoint",
      "category": "Cave i ruch",
      "signature": "baku.cave_waypoint(number)->table",
      "description": "Reads one waypoint from canonical Cave route snapshot; no filesystem or private route authority.",
      "details": {
        "Argumenty": "1-based waypoint number",
        "Wynik": "{status,found,index,number,type,label,position_valid,x,y,z,...}",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.cave_route",
      "category": "Cave i ruch",
      "signature": "cave_route(start?,limit?) -> {status,ready,route_generation,route,count,editable,owner,session_generation,truncated,waypoints:array<Waypoint>}",
      "description": "Odczytuje stronę kanonicznej trasy roboczej, jej dokładną wersję oraz pełne parametry WP. Pusta trasa jest poprawnym dokumentem. editable nie oznacza zakończonego zapisu na dysku.",
      "details": {
        "Argumenty": "start?: integer >=1 (default1), limit?: integer1..128(default64)",
        "Wynik": "{status,ready,route_generation,route,count,editable,owner,session_generation,truncated,waypoints:array<Waypoint>}",
        "Potwierdzenie": "NONE; read only"
      }
    },
    {
      "name": "baku.cave_wp_add",
      "category": "Cave i ruch",
      "signature": "cave_wp_add(waypoint,expected_generation) -> RouteEditReceipt",
      "description": "Edytuje pełny, typowany waypoint w jednym modelu roboczym Recorder/Cave. Cave i Recorder muszą być OFF. Odczytaj aktualny route_generation z cave_route(); nie ponawiaj operacji po nieznanym wyniku bez ponownego odczytu. Add wymaga pozycji przy aktualnym Self; Edit zachowuje pominięte pola istniejącego WP. Parametry waypointu i granice opisuje WaypointInput. committed=true potwierdza pamięć i odbicie w Cave; zapis pliku wymaga zwykłego Save.",
      "details": {
        "Argumenty": "waypoint: WaypointInput; expected_generation: exact route_generation from cave_route (integer or decimal string). edit number: 1-based. Required type,x,y,z; optional fields in WaypointInput. Unknown fields rejected. Existing fields omitted in edit are preserved.",
        "Wynik": "RouteEditReceipt: status,committed,attempted,reason,before_generation,route_generation,count,postcondition,persistence,session_generation",
        "Potwierdzenie": "MEMORY_COMMITTED_AND_CAVE_MIRRORED; disk save not attested"
      }
    },
    {
      "name": "baku.cave_wp_edit",
      "category": "Cave i ruch",
      "signature": "cave_wp_edit(number,waypoint,expected_generation,move_to?) -> RouteEditReceipt",
      "description": "Edytuje pełny, typowany waypoint w jednym modelu roboczym Recorder/Cave. Cave i Recorder muszą być OFF. Odczytaj aktualny route_generation z cave_route(); nie ponawiaj operacji po nieznanym wyniku bez ponownego odczytu. Add wymaga pozycji przy aktualnym Self; Edit zachowuje pominięte pola istniejącego WP. Parametry waypointu i granice opisuje WaypointInput. committed=true potwierdza pamięć i odbicie w Cave; zapis pliku wymaga zwykłego Save.",
      "details": {
        "Argumenty": "waypoint: WaypointInput; expected_generation: exact route_generation from cave_route (integer or decimal string). edit number: 1-based. Required type,x,y,z; optional fields in WaypointInput. Unknown fields rejected. Existing fields omitted in edit are preserved. Optional move_to: destination waypoint number (1-based); preserves the complete payload and renumbers the route atomically.",
        "Wynik": "RouteEditReceipt: status,committed,attempted,reason,before_generation,route_generation,count,postcondition,persistence,session_generation",
        "Potwierdzenie": "MEMORY_COMMITTED_AND_CAVE_MIRRORED; disk save not attested"
      }
    },
    {
      "name": "baku.cave_wp_delete",
      "category": "Cave i ruch",
      "signature": "cave_wp_delete(number,expected_generation) -> RouteEditReceipt",
      "description": "Versioned delete through canonical editor, only Cave+Recorder OFF and no pending editor work.",
      "details": {
        "Argumenty": "number:integer>=1, expected_generation:exact uint64 token",
        "Wynik": "RouteEditReceipt{status,committed,attempted,reason,before_generation,route_generation,count,postcondition,persistence,session_generation}; attempted=true with committed=false means outcome unknown, re-query before retry.",
        "Potwierdzenie": "MEMORY_COMMITTED_AND_CAVE_MIRRORED; disk save not attested"
      }
    },
    {
      "name": "baku.cave_wp_clear",
      "category": "Cave i ruch",
      "signature": "cave_wp_clear(expected_generation) -> RouteEditReceipt",
      "description": "Versioned clear via canonical owner; empty route legal; no automatic Walker enable.",
      "details": {
        "Argumenty": "expected_generation:exact uint64 token",
        "Wynik": "RouteEditReceipt{status,committed,attempted,reason,before_generation,route_generation,count,postcondition,persistence,session_generation}; attempted=true with committed=false means outcome unknown, re-query before retry.",
        "Potwierdzenie": "MEMORY_COMMITTED_AND_CAVE_MIRRORED; disk save not attested"
      }
    },
    {
      "name": "baku.cave_routes",
      "category": "Cave i ruch",
      "signature": "cave_routes(options?) -> table",
      "description": "Rzeczywista lista plików tras z folderu waypoints.",
      "details": {
        "Argumenty": "options?: {start=1,limit=64,refresh=false}. Reads actual waypoints/*.json, bounded to128files.",
        "Wynik": "Same paginated catalog fields as profiles. file_version is required for open.",
        "Potwierdzenie": "APPLIED/SAVED only after canonical apply/durable write; no claim about subsequent game actions"
      }
    },
    {
      "name": "baku.cave_route_open",
      "category": "Cave i ruch",
      "signature": "cave_route_open(route_id, options) -> table",
      "description": "Otwiera wskazaną trasę także ze stale działającego skryptu; pozostawia Cave OFF.",
      "details": {
        "Argumenty": "id: exact cave_routes id. options: {expected_generation=token,file_version=SHA256,expected_route_generation=token,discard_unsaved=false}. Read route generation from cave_route; nonempty working route requires exact token and discard_unsaved=true. Recorder must be OFF with no pending editing/persistence.",
        "Wynik": "Available also to permanent scripts. STOP, validate/read file on worker, activate shared working model, walker OFF. ACCEPTED is not loaded.",
        "Potwierdzenie": "APPLIED/SAVED only after canonical apply/durable write; no claim about subsequent game actions"
      }
    },
    {
      "name": "baku.cave_goto",
      "category": "Cave i ruch",
      "signature": "baku.cave_goto({x=100, y=100, z=7, timeout_ms=30000})",
      "description": "Ręczne dojście do wskazanego punktu na bieżącym piętrze przez istniejący Cave D* Lite. Wymaga wyłączonego Walkera i Recorder. Nie zmienia dokumentu trasy.",
      "details": {
        "Argumenty": "cave_goto: options object with integer x,y=1..65535, z=0..15 (current floor), optional timeout_ms=1000..300000 default 30000; cancel/state: no arguments.",
        "Wynik": "table: status, reason, goto_status, active, request_id, command_id, target{x,y,z}, physical_arrival, stop_command_confirmed",
        "Potwierdzenie": "Exact fresh Self at target for ARRIVED; cancel requires terminal native Stop result. STOP_FAILED retains ownership until explicit Cancel retry. No route cursor advance, blind retry or cross-floor recovery.",
        "Przykład": "local state = baku.cave_goto({x=100, y=100, z=7, timeout_ms=30000})"
      }
    },
    {
      "name": "baku.cave_goto_cancel",
      "category": "Cave i ruch",
      "signature": "baku.cave_goto_cancel()",
      "description": "Anuluje własny ręczny cel skryptu. Stop przechodzi przez istniejący ActionApi/Arbiter/GTQ; brak automatycznego powrotu do Walkera.",
      "details": {
        "Argumenty": "cave_goto: options object with integer x,y=1..65535, z=0..15 (current floor), optional timeout_ms=1000..300000 default 30000; cancel/state: no arguments.",
        "Wynik": "table: status, reason, goto_status, active, request_id, command_id, target{x,y,z}, physical_arrival, stop_command_confirmed",
        "Potwierdzenie": "Exact fresh Self at target for ARRIVED; cancel requires terminal native Stop result. STOP_FAILED retains ownership until explicit Cancel retry. No route cursor advance, blind retry or cross-floor recovery.",
        "Przykład": "local state = baku.cave_goto_cancel()"
      }
    },
    {
      "name": "baku.cave_goto_state",
      "category": "Cave i ruch",
      "signature": "baku.cave_goto_state()",
      "description": "Zwraca stan ręcznego celu: ARRIVED oznacza dokładną pozycję świeżego Self, a nie samo zakończenie wywołania klienta.",
      "details": {
        "Argumenty": "cave_goto: options object with integer x,y=1..65535, z=0..15 (current floor), optional timeout_ms=1000..300000 default 30000; cancel/state: no arguments.",
        "Wynik": "table: status, reason, goto_status, active, request_id, command_id, target{x,y,z}, physical_arrival, stop_command_confirmed",
        "Potwierdzenie": "Exact fresh Self at target for ARRIVED; cancel requires terminal native Stop result. STOP_FAILED retains ownership until explicit Cancel retry. No route cursor advance, blind retry or cross-floor recovery.",
        "Przykład": "local state = baku.cave_goto_state()"
      }
    },
    {
      "name": "baku.every",
      "category": "Zdarzenia i czas",
      "signature": "every(ms: integer, callback: function) -> integer",
      "description": "ScriptRegistry; integer",
      "details": {
        "Argumenty": "ms 1000..3600000; callback function; <=8 live tokens/script",
        "Wynik": "integer",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.unix_time",
      "category": "Zdarzenia i czas",
      "signature": "baku.unix_time() -> integer",
      "description": "UTC Unix time w sekundach z host system clock; query-only.",
      "details": {
        "Argumenty": "no arguments",
        "Wynik": "Unix seconds",
        "Potwierdzenie": "pure bounded result; no mutation, scheduler or client side effect"
      }
    },
    {
      "name": "baku.text_after",
      "category": "Zdarzenia i czas",
      "signature": "baku.text_after(text,needle)->text|nil",
      "description": "Returns bytes after first literal needle; bounded.",
      "details": {
        "Argumenty": "text,needle <=1024 B",
        "Wynik": "string|nil",
        "Potwierdzenie": "pure bounded result; no mutation, scheduler or client side effect"
      }
    },
    {
      "name": "baku.runtime_info",
      "category": "Zdarzenia i czas",
      "signature": "runtime_info() -> {api_version,source_sha256,runtime_started,state_indexes_valid,config_generation,session_generation,self_generation,event_generation,script_id,script_generation,standard_libs,scheduler}",
      "description": "Read-only source and execution identity; no pointers, opcodes or runtime override.",
      "details": {
        "Argumenty": "none",
        "Wynik": "{api_version,source_sha256,runtime_started,state_indexes_valid,config_generation,session_generation,self_generation,event_generation,script_id,script_generation,standard_libs,scheduler}",
        "Potwierdzenie": "NONE; read only"
      }
    },
    {
      "name": "baku.hud_text",
      "category": "HUD",
      "signature": "baku.hud_text(x: integer, y: integer, text: string) -> table",
      "description": "Canonical ScriptHud: wizual jest renderowany wewnątrz mapWindow klienta Tibii i podlega clipping/stacking UI klienta; HUD skryptu jest wyłącznie na ekranie gry. Współrzędne x/y są lokalne dla mapWindow. Item używa canonical client_catalog PNG/BMP, ID jest wyłącznie fallbackiem gdy asset nie jest dostępny.",
      "details": {
        "Argumenty": "x: integer, y: integer, text: string",
        "Wynik": "{status,handle?}",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.hud_item",
      "category": "HUD",
      "signature": "baku.hud_item(x: integer, y: integer, item_id: integer) -> table",
      "description": "Canonical ScriptHud: wizual jest renderowany wewnątrz mapWindow klienta Tibii i podlega clipping/stacking UI klienta; HUD skryptu jest wyłącznie na ekranie gry. Współrzędne x/y są lokalne dla mapWindow. Item używa canonical client_catalog PNG/BMP, ID jest wyłącznie fallbackiem gdy asset nie jest dostępny.",
      "details": {
        "Argumenty": "x: integer, y: integer, item_id: integer",
        "Wynik": "{status,handle?}",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.hud_rect",
      "category": "HUD",
      "signature": "baku.hud_rect(x: integer, y: integer, width: integer, height: integer [, rgb: integer=0xffffff]) -> table",
      "description": "Canonical ScriptHud: wizual jest renderowany wewnątrz mapWindow klienta Tibii i podlega clipping/stacking UI klienta; HUD skryptu jest wyłącznie na ekranie gry. Współrzędne x/y są lokalne dla mapWindow. Item używa canonical client_catalog PNG/BMP, ID jest wyłącznie fallbackiem gdy asset nie jest dostępny.",
      "details": {
        "Argumenty": "x: integer, y: integer, width: integer, height: integer [, rgb: integer=0xffffff]",
        "Wynik": "{status,handle?}",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.hud_set_text",
      "category": "HUD",
      "signature": "baku.hud_set_text(handle: integer, text: string) -> table",
      "description": "Canonical ScriptHud: wizual jest renderowany wewnątrz mapWindow klienta Tibii i podlega clipping/stacking UI klienta; HUD skryptu jest wyłącznie na ekranie gry. Współrzędne x/y są lokalne dla mapWindow. Item używa canonical client_catalog PNG/BMP, ID jest wyłącznie fallbackiem gdy asset nie jest dostępny.",
      "details": {
        "Argumenty": "handle: integer, text: string",
        "Wynik": "{status}; STALE_HANDLE when owner/generation check fails",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.hud_set_position",
      "category": "HUD",
      "signature": "baku.hud_set_position(handle: integer, x: integer, y: integer) -> table",
      "description": "Canonical ScriptHud: wizual jest renderowany wewnątrz mapWindow klienta Tibii i podlega clipping/stacking UI klienta; HUD skryptu jest wyłącznie na ekranie gry. Współrzędne x/y są lokalne dla mapWindow. Item używa canonical client_catalog PNG/BMP, ID jest wyłącznie fallbackiem gdy asset nie jest dostępny.",
      "details": {
        "Argumenty": "handle: integer, x: integer, y: integer",
        "Wynik": "{status}; STALE_HANDLE when owner/generation check fails",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.hud_set_visible",
      "category": "HUD",
      "signature": "baku.hud_set_visible(handle: integer, visible: boolean) -> table",
      "description": "Canonical ScriptHud: wizual jest renderowany wewnątrz mapWindow klienta Tibii i podlega clipping/stacking UI klienta; HUD skryptu jest wyłącznie na ekranie gry. Współrzędne x/y są lokalne dla mapWindow. Item używa canonical client_catalog PNG/BMP, ID jest wyłącznie fallbackiem gdy asset nie jest dostępny.",
      "details": {
        "Argumenty": "handle: integer, visible: boolean",
        "Wynik": "{status}; STALE_HANDLE when owner/generation check fails",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.hud_remove",
      "category": "HUD",
      "signature": "baku.hud_remove(handle: integer) -> table",
      "description": "Canonical ScriptHud: wizual jest renderowany wewnątrz mapWindow klienta Tibii i podlega clipping/stacking UI klienta; HUD skryptu jest wyłącznie na ekranie gry. Współrzędne x/y są lokalne dla mapWindow. Item używa canonical client_catalog PNG/BMP, ID jest wyłącznie fallbackiem gdy asset nie jest dostępny.",
      "details": {
        "Argumenty": "handle: integer",
        "Wynik": "{status}; STALE_HANDLE when owner/generation check fails",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.hud_clear",
      "category": "HUD",
      "signature": "baku.hud_clear() -> table",
      "description": "Canonical ScriptHud: wizual jest renderowany wewnątrz mapWindow klienta Tibii i podlega clipping/stacking UI klienta; HUD skryptu jest wyłącznie na ekranie gry. Współrzędne x/y są lokalne dla mapWindow. Item używa canonical client_catalog PNG/BMP, ID jest wyłącznie fallbackiem gdy asset nie jest dostępny.",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "{status}; STALE_HANDLE when owner/generation check fails",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.hud_on_click",
      "category": "HUD",
      "signature": "baku.hud_on_click(handle, callback) -> {status,token?}",
      "description": "Klik używa istniejącego GUI input ownera jako niewidocznego regionowego proxy tylko gdy Tibia jest foreground; callback przechodzi przez canonical Script Manager/Runtime21. Wizual pozostaje in-client QML.",
      "details": {
        "Argumenty": "handle, callback; one callback per owned handle; repeat registration replaces callback and retains token; <=8 total callbacks",
        "Wynik": "{status,token?}",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.hud_set_color",
      "category": "HUD",
      "signature": "baku.hud_set_color(handle,rgb)->table",
      "description": "Changes canonical ScriptHud text/rect color on existing in-client renderer.",
      "details": {
        "Argumenty": "owned handle, RGB 0..0xffffff",
        "Wynik": "{status}; STALE_HANDLE when owner/generation check fails",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.hud_set_size",
      "category": "HUD",
      "signature": "baku.hud_set_size(handle,width,height)->table",
      "description": "Changes canonical ScriptHud rectangle bounds/hitbox.",
      "details": {
        "Argumenty": "owned handle; 1..8192 dimensions",
        "Wynik": "{status}; STALE_HANDLE when owner/generation check fails",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.hud_set_item_id",
      "category": "HUD",
      "signature": "baku.hud_set_item_id(handle,item_id)->table",
      "description": "Changes item ID on an owned HUD item using canonical client_catalog asset pipeline.",
      "details": {
        "Argumenty": "owned item handle; item 1..65535",
        "Wynik": "{status}; STALE_HANDLE when owner/generation check fails",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.hud_set_font_size",
      "category": "HUD",
      "signature": "baku.hud_set_font_size(handle,pixels)->table",
      "description": "Changes text pixel size on existing in-client ScriptHud renderer.",
      "details": {
        "Argumenty": "owned text handle; 8..32",
        "Wynik": "{status}; STALE_HANDLE when owner/generation check fails",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.hud_get_position",
      "category": "HUD",
      "signature": "baku.hud_get_position(handle)->table",
      "description": "Reads canonical owned ScriptHud geometry/style; no renderer duplication.",
      "details": {
        "Argumenty": "owned HUD handle",
        "Wynik": "{status,x?,y?,width?,height?,color?,font_size?}",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.dialog",
      "category": "Dane i diagnostyka",
      "signature": "dialog() -> table",
      "description": "UserLuaRuntime/PublicApi projection; Bounded value table; fields with known/valid/ready must be checked",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "Bounded value table; fields with known/valid/ready must be checked",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.log",
      "category": "Dane i diagnostyka",
      "signature": "log(message: string) -> nil",
      "description": "UserLuaRuntime/PublicApi projection; nil",
      "details": {
        "Argumenty": "string <=1024 bytes; output truncated to 191 bytes; 16 records/invocation",
        "Wynik": "nil",
        "Potwierdzenie": "NONE; query/host operation does not attest physical action success"
      }
    },
    {
      "name": "baku.storage_get",
      "category": "Dane i diagnostyka",
      "signature": "baku.storage_get(key: string) -> table",
      "description": "ConfigAuthority bounded persistent user-data storage / canonical character identity; {status,value?,persistence=\"config_authority_user_data_disk\",namespace=\"character+script_id\"}; persists across process restart",
      "details": {
        "Argumenty": "key: string",
        "Wynik": "{status,value?,persistence=\"config_authority_user_data_disk\",namespace=\"character+script_id\"}",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition Return field storage_io_us measures host binding walltime. At most four storage_io debug records per invocation; no persistence/timing policy change."
      }
    },
    {
      "name": "baku.storage_set",
      "category": "Dane i diagnostyka",
      "signature": "baku.storage_set(key: string, value: string) -> table",
      "description": "ConfigAuthority bounded persistent user-data storage / canonical character identity; {status,value?,persistence=\"config_authority_user_data_disk\",namespace=\"character+script_id\"}; persists across process restart",
      "details": {
        "Argumenty": "key: string, value: string",
        "Wynik": "{status,persistence=\"config_authority_user_data_disk\",namespace=\"character+script_id\"}",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition Return field storage_io_us measures host binding walltime. At most four storage_io debug records per invocation; no persistence/timing policy change."
      }
    },
    {
      "name": "baku.storage_delete",
      "category": "Dane i diagnostyka",
      "signature": "baku.storage_delete(key: string) -> table",
      "description": "ConfigAuthority bounded persistent user-data storage / canonical character identity; {status,value?,persistence=\"config_authority_user_data_disk\",namespace=\"character+script_id\"}; persists across process restart",
      "details": {
        "Argumenty": "key: string",
        "Wynik": "{status,persistence=\"config_authority_user_data_disk\",namespace=\"character+script_id\"}",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition Return field storage_io_us measures host binding walltime. At most four storage_io debug records per invocation; no persistence/timing policy change."
      }
    },
    {
      "name": "baku.storage_clear",
      "category": "Dane i diagnostyka",
      "signature": "baku.storage_clear() -> table",
      "description": "ConfigAuthority bounded persistent user-data storage / canonical character identity; {status,value?,persistence=\"config_authority_user_data_disk\",namespace=\"character+script_id\"}; persists across process restart",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "{status,persistence=\"config_authority_user_data_disk\",namespace=\"character+script_id\"}",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition Return field storage_io_us measures host binding walltime. At most four storage_io debug records per invocation; no persistence/timing policy change."
      }
    },
    {
      "name": "baku.json_null",
      "category": "Dane i diagnostyka",
      "signature": "baku.json_null() -> table",
      "description": "bounded fixed-buffer host JSON codec; encode={status,json?,bytes}; decode={status,value?}; null/array helpers preserve tagged round trips; UTF-8 strict, duplicate keys/sparse arrays/cycles/overflow rejected",
      "details": {
        "Argumenty": "No positional arguments",
        "Wynik": "encode={status,json?,bytes}; decode={status,value?}; null/array helpers preserve tagged round trips; UTF-8 strict, duplicate keys/sparse arrays/cycles/overflow rejected",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.json_array",
      "category": "Dane i diagnostyka",
      "signature": "baku.json_array(value: table) -> table",
      "description": "bounded fixed-buffer host JSON codec; encode={status,json?,bytes}; decode={status,value?}; null/array helpers preserve tagged round trips; UTF-8 strict, duplicate keys/sparse arrays/cycles/overflow rejected",
      "details": {
        "Argumenty": "value: table",
        "Wynik": "encode={status,json?,bytes}; decode={status,value?}; null/array helpers preserve tagged round trips; UTF-8 strict, duplicate keys/sparse arrays/cycles/overflow rejected",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.json_encode",
      "category": "Dane i diagnostyka",
      "signature": "baku.json_encode(value) -> table",
      "description": "bounded fixed-buffer host JSON codec; encode={status,json?,bytes}; decode={status,value?}; null/array helpers preserve tagged round trips; UTF-8 strict, duplicate keys/sparse arrays/cycles/overflow rejected",
      "details": {
        "Argumenty": "value",
        "Wynik": "encode={status,json?,bytes}; decode={status,value?}; null/array helpers preserve tagged round trips; UTF-8 strict, duplicate keys/sparse arrays/cycles/overflow rejected",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.json_decode",
      "category": "Dane i diagnostyka",
      "signature": "baku.json_decode(json: string) -> table",
      "description": "bounded fixed-buffer host JSON codec; encode={status,json?,bytes}; decode={status,value?}; null/array helpers preserve tagged round trips; UTF-8 strict, duplicate keys/sparse arrays/cycles/overflow rejected",
      "details": {
        "Argumenty": "json: string",
        "Wynik": "encode={status,json?,bytes}; decode={status,value?}; null/array helpers preserve tagged round trips; UTF-8 strict, duplicate keys/sparse arrays/cycles/overflow rejected",
        "Potwierdzenie": "host result; gameplay actions preserve canonical result/postcondition"
      }
    },
    {
      "name": "baku.random",
      "category": "Dane i diagnostyka",
      "signature": "baku.random([max]|[min,max])->number",
      "description": "Prywatny RNG VM. random()->[0,1); random(hi)->[1,hi]; random(lo,hi) obsługuje cały signed 64-bit zakres. Nie kryptograficzny.",
      "details": {
        "Argumenty": "optional integer bounds",
        "Wynik": "number",
        "Potwierdzenie": "pure bounded result; no mutation, scheduler or client side effect"
      }
    },
    {
      "name": "baku.random_seed",
      "category": "Dane i diagnostyka",
      "signature": "baku.random_seed(seed)",
      "description": "Sets script-thread utility PRNG seed; no scheduler/client effect.",
      "details": {
        "Argumenty": "integer seed",
        "Wynik": "no values",
        "Potwierdzenie": "Reseeds only the current script VM RNG. Does not affect any other script; VM recreation resets state."
      }
    },
    {
      "name": "baku.debug_records",
      "category": "Dane i diagnostyka",
      "signature": "debug_records(limit?) -> {status,scope,count,items:array<DebugRecord>}",
      "description": "Own script records from canonical debugger ring, newest first. Does not emit completed logs, clear or expose another script records.",
      "details": {
        "Argumenty": "limit?:integer1..32(default16)",
        "Wynik": "{status,scope,count,items:array<DebugRecord>}",
        "Potwierdzenie": "NONE; read only"
      }
    }
  ]
}
