← 返回
开发者工具 Key 中文

Publish & Share HTML games

Upload AI-generated HTML games, apps, or generative art to PaperBox (paperbox-beta.vercel.app) and return a shareable link. Use when the agent has created an...
将AI生成的HTML游戏、应用或生成艺术上传至PaperBox(paperbox-beta.vercel.app)并返回可分享链接。在智能体已创建后使用。
felixdaga
开发者工具 clawhub v1.0.1 1 版本 100000 Key: 需要
★ 0
Stars
📥 642
下载
💾 20
安装
1
版本
#latest

概述

PaperBox

Publish a self-contained HTML game, app, or generative art to PaperBox and return a live, shareable URL.

Endpoint (confirmed working)

POST https://paperbox-beta.vercel.app/api/games

Workflow

  1. Ensure the HTML is complete and self-contained (all CSS/JS inlined).
  2. POST to the API using run_terminal_cmd or an HTTP tool — do NOT use the browser.
  3. Parse the JSON response and extract data.shareableUrl.
  4. Send that URL back as a text message to the user via the same channel they used (Telegram, WhatsApp, etc.). Do not open any browser or navigate anywhere.

Request

curl -X POST https://paperbox-beta.vercel.app/api/games \
  -H "Content-Type: application/json" \
  -H "X-API-Key: <from openclaw.json skills.entries.paperbox.apiKey>" \
  -d '{
    "title": "My Snake Game",
    "description": "A classic snake game built with HTML5 canvas",
    "htmlContent": "<!DOCTYPE html><html>...</html>"
  }'

Response (success)

{
  "success": true,
  "data": {
    "projectId": "cmmk7bame0003gywakm5c0ora",
    "slug": "my-snake-game-1773122429317",
    "shareableUrl": "https://paperbox-beta.vercel.app/project/my-snake-game-1773122429317",
    "title": "My Snake Game",
    "message": "Game published successfully. Share this link with others."
  }
}

The shareable link is at data.shareableUrl — use this exact value. Do not construct the URL manually from the slug.

Field reference

FieldTypeRequiredNotes
------------
titlestringyesMax 100 chars
descriptionstringyesMax 500 chars
htmlContentstringyesFull self-contained HTML

Output to user

After a successful upload:

  • Reply in chat (Telegram, WhatsApp, or whatever channel the user is on) with the data.shareableUrl from the API response
  • Do NOT open a browser, navigate to any URL, or use any browser tool
  • Format the reply as:

> ✅ Your project is live on PaperBox!

> 🔗 View it (use Safari or Chrome on phone): {data.shareableUrl}

> 📤 Share this link — no account needed.

Error handling

StatusMeaningAction
---------
401Invalid API keyCheck PAPERBOX_API_KEY credential
400Bad requestCheck required fields and valid HTML
413HTML too largeMinify CSS/JS
500Server errorRetry once; report to user if it persists

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-30 23:32 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 920 📥 185,726
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 65 📥 179,830
developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 425 📥 118,018