Skip to content

xhs_list_drafts

列出所有笔记草稿。

参数

参数类型必填说明
includePublishedboolean是否包含已发布的草稿(默认 false)

返回值

json
{
  "drafts": [
    {
      "id": "draft-uuid",
      "title": "笔记标题",
      "content": "笔记内容摘要...",
      "imageCount": 3,
      "tags": ["标签1", "标签2"],
      "createdAt": "2024-01-01T00:00:00Z",
      "published": false
    }
  ],
  "total": 5
}

示例

列出未发布的草稿

xhs_list_drafts()

列出所有草稿

xhs_list_drafts({ includePublished: true })

Released under the MIT License.