uOS.ready() | none | Hide the splash; signal successful boot. Returns { ok: true } |
uOS.getContext() | none | { host: 'uOS', appId, user: { address }, theme, locale }. address is null when no wallet is connected; theme is 'light' or 'dark'; locale is the host navigator.language (fallback 'en-US') |
uOS.openUrl(url) | none | Ask uOS to open an http:/https: URL in a new tab. Returns { ok: true } when url is a string (non-http(s) URLs are ignored by the shell) |
uOS.close() | none | Close this app window. Returns { ok: true } |
uOS.wallet.request({ method, params }) | wallet:request (+ wallet:sign for writes) | EIP-1193-style request |
uOS.fs.read(path) | filesystem:read | Read from /apps/<appId>/…. Returns { content } (content is null if the path is missing or not a file) |
uOS.fs.write(path, content) | filesystem:write | Write under that directory. Returns { ok: boolean } |
uOS.fs.list(path) | filesystem:read | List that directory (path defaults to /). Returns { entries } (empty array if the directory is missing) |
uOS.net.fetch({ url, method, headers, body }) | network:fetch | Host-mediated public http(s) fetch. Returns { status, body }. Disallowed/missing URL → -32602; timeout/network failure → 4900 |
uOS.agents.call(payload) | agents:call | Not implemented yet; returns 4100 without permission, 4200 when granted |
uOS.storage.ipfs(payload) | storage:ipfs | Not implemented yet; returns 4100 without permission, 4200 when granted |
uOS.on(event, fn) | none | Subscribe to host events. The host does not emit events yet |