Xpersona
W

Wolai API 技能

CLAWHUB · Unverified

Wolai API skill — 操作 wolai 笔记(块/页面/数据库)/ Wolai API Skill - Operate wolai notes (blocks, pages, database) via REST API Skill: Wolai API 技能 Owner: cizixiu Summary: Wolai API skill — 操作 wolai 笔记(块/页面/数据库)/ Wolai API Skill - Operate wolai notes (blocks, pages, database) via REST API Tags: api:1.0.7, blocks:1.0.7, cizixiu:1.0.7, database:1.0.7, latest:1.0.7, notes:1.0.7, pages:1.0.7, rest:1.0.7, wolai:1.0.7, wolai-api:1.0.7 Version history: v1.0.7 | 2026-04-10T08:07:12.447Z | auto wolai-api-skill 1.0.7 - No file changes detected in this

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17btnm89b2vs15myvzn3wrj0d83k2we:wolai-api-skill
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-cizixiu-wolai-api-skill/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

143,946 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: wolai
description: "Wolai API skill — 操作 wolai 笔记(块/页面/数据库)/ Wolai API Skill - Operate wolai notes (blocks, pages, database) via REST API"
allowed-tools:
version: "1.0.6"
runtime: windows-powershell
credentials:
  WOLAI_TOKEN:
    description: "wolai App Token(永久有效,expire_time: -1),通过 POST /token 用 appId+appSecret 换取"
    required: true
source:
  type: github
  url: https://github.com/cizixiu/wolai-api-skill
---

# wolai API Skill

通过 wolai Open API(RESTful)操作 wolai 的块、页面、数据库。

Base URL:`https://openapi.wolai.com/v1`

---

## Setup

### 1. 创建应用并获取 Token

1. 前往 https://www.wolai.com/dev 创建应用(需空间管理员权限)
2. 选择所需**应用能力**(最小权限原则):
   - 读取页面内容
   - 插入页面内容
   - 更新页面内容
3. 创建后得到 `App ID` 和 `App Secret`
4. 调用 `POST /token` 换取 `app_token`
5. 将 Token 告知 AI 助手,由 AI 负责完成后续配置

> ⚠️ **Token 安全须知**
>
> wolai App Token 设计为永久有效(`expire_time: -1`),这是 wolai 平台的设计。使用时请勿将 Token 泄露给他人或公开到代码库/聊天记录中。如泄露:在 wolai 应用管理页面重置 App Secret,然后重新调用 `POST /token` 获取新 Token(旧 Token 立即失效)。

### 2. 工作空间权限说明

| 空间类型 | 权限规则 |
|--------|--------|
| **个人空间** | 默认拥有全部页面权限,无需额外操作 |
| **团队空间** | 每个页面需单独添加应用:页面右上角 → 页面协作 → 应用权限 → 添加应用 |

---

## 凭证预检

每次调用前先检查 Token:

```powershell
if (-not $env:WOLAI_TOKEN) {
    Write-Error "缺少 WOLAI_TOKEN,请按 Setup 步骤配置"
    exit 1
}
```

---

## API 调用封装

所有请求统一使用 PowerShell(Windows 环境),Token 放在 `Authorization` Header:

```powershell
function Invoke-WolaiApi {
    param(
        [string]$Method = "GET",
        [string]$Path,
        [hashtable]$Body = $null,
        [hashtable]$Query = $null,
        [switch]$RawJson  # 新增:返回原始 JSON 字符串而非对象(避免中文乱码)
    )
    # ⚠️ 必须强制 UTF-8,否则中文内容会变成问号
    [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
    $OutputEncoding = [System.Text.Encoding]::UTF8

    $headers = @{
        "Authorization" = $env:WOLAI_TOKEN
        "Content-Type"  = "application/json; charset=utf-8"
    }

    $uri = "https://openapi.wolai.com/v1$Path"

    # 拼接 Query 参数(用于分页等)
    if ($Query) {
        $qs = ($Query.GetEnumerator() | ForEach-Object {
            # URL 编码值(防止特殊字符问题)
            "$($_.Key)=$([System.Web.HttpUtility]::UrlEncode("$($_.Value)"))"
        }) -join "&"
        $uri = "$uri?$qs"
    }

    try {
        if ($RawJson) {
            # 返回原始 JSON 字符串(适合中文内容)
            $resp = Invoke-WebRequest -Method $Method -Uri $uri -Headers $headers
            if ($Body) {
                $bodyBytes = [System.Text.Encoding]::UTF8.GetBytes(($Body | ConvertTo-Json -Depth 10))
                $resp = Invoke-WebRequest -Method $Method -Uri $uri -Headers $headers -Body $bodyBytes
            }
            return $resp.Content
        } else {
            # 返回解析后的对象
            if ($Body) {
                $bodyBytes = [System.Text.Encoding]::UTF8.GetBytes(($Body | ConvertTo-Json -Depth 10))
                $response = Invoke-RestMethod -Method $Method -Uri $uri -Headers $headers -Body $bodyBytes
            } else {
                $response = Invoke-RestMethod -Method $Method -Uri $uri -Headers $headers
            }
      

_meta.json

{
  "ownerId": "kn7ej3rkcaj80aygz0v9xy6x198338r4",
  "slug": "wolai-api-skill",
  "version": "1.0.7",
  "publishedAt": 1775808432447
}

skill-card.md

## Description:

Operates Wolai notes, pages, blocks, and databases through Wolai's REST API using PowerShell-oriented workflows.

This skill is ready for commercial/non-commercial use.

## Publisher:

[cizixiu](https://clawhub.ai/user/cizixiu)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and external users use this skill to read, create, and update Wolai page content and database rows from an agent using Wolai API calls.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: A permanent Wolai app token could expose pages and databases granted to the app if pasted into chat, logs, or transcripts.

Mitigation: Store WOLAI_TOKEN in a secure credential or environment mechanism, avoid printing it, and rotate it immediately if exposure is suspected.

Risk: The skill can act on Wolai content within the app's granted permissions.

Mitigation: Grant the Wolai app only the minimum page and database permissions required for the intended workflow.

## Reference(s):

- [Wolai API base URL](https://openapi.wolai.com/v1)
- [Wolai developer center](https://www.wolai.com/dev)
- [ClawHub skill page](https://clawhub.ai/cizixiu/skills/wolai-api-skill)

## Skill Output:

**Output Type(s):** [guidance, shell commands, code, configuration]

**Output Format:** [Markdown with PowerShell code blocks and JSON examples]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires a Wolai app token supplied through WOLAI_TOKEN and access only to Wolai pages and databases granted to that app.]

## Skill Version(s):

1.0.7 (source: ClawHub release evidence; artifact frontmatter reports 1.0.6)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Wolai API 技能 and adjacent AI workflows.