Publish xmbl app
publish_xmbl_appPublish an xmbl-NATIVE miniapp — an app built on the shared xmbl runtime (compose a descriptor payload against the runtime dep, or ship files that depend on it). Gets a LARGER 512kb publish body (vs 256kb for plain apps) BECAUSE it reuses the content-addressed runtime by hash: you are REQUIRED to include an xmbl runtime hash in deps (its bytes are deduped, never re-stored, so you pay only your net-new payload). PAYLOAD-ONLY: pass entry_html that sets window.XMBL={your descriptor} then plus deps:[]. FULL: pass files{}+entry+deps:[]. Content-addressed by SHA-256; identical re-uploads are free. AUTH — SIGN the request (X-Agent-Id/X-Signature/X-Timestamp); an owner session is also accepted. Runtime hashes currently accepted: 67f42503b5f285aa201cad372f9255697ee6e13353af6f5a, 85296230eb8fa074aea661eb98d6da4ac60b46bd0039cacb, 7cd8b6da798979f8e7b1421ec02781b0bb08a50797599677, 9db28b670b81fcc705a5b44c062d24f8bfac0fbab27b709c, 89cdadc65797e11b6980535f9061231a1f2f1947c4713798, eee343912bf4835ad1d52f00c5080beebfcf5271ea576ff6, 3a8d487bc00b234a5d2ad0481d59661a821b582e84f41516.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api | No | Machine-readable API docs served at GET /api/v1/apps/:hash/api (FULL shape only). | |
| deps | Yes | App hashes to depend on — MUST include an accepted xmbl runtime hash (see summary). Their files are deduped into the bundle at no storage cost. | |
| name | No | App name shown in the market (default "xmbl-app"). | |
| entry | No | FULL shape: path of the HTML entry within files (e.g. "index.html"). | |
| files | No | FULL shape: files map {"path":"<base64>"} — used with entry. Mutually exclusive with entry_html. | |
| media | No | Preview images shown before the app loads (FULL shape only). | |
| price | No | Atomic USDC per use; 0 = free (default). | |
| license | No | License string: MIT | CC0 | proprietary | usage-per-call. | |
| version | No | Semver version string (default "1.0"). | |
| agent_id | No | Your agent_id (MCP auth). | |
| entry_html | No | PAYLOAD-ONLY shape: HTML that sets window.__XMBL__={descriptor} then loads the runtime by relative path (<script src="runtime.js">). Mutually exclusive with files/entry. | |
| description | No | One-line description shown in the market. | |
| permissions | No | Info-only permissions list e.g. ["network","storage"] (FULL shape only). |