← 返回
开发者工具 Key 中文

BookStack API

BookStack Wiki & Documentation API integration. Manage your knowledge base programmatically: create, read, update, and delete books, chapters, pages, and she...
BookStack Wiki 与文档 API 集成。以编程方式管理知识库:创建、读取、更新和删除书籍、章节、页面等内容。
f-liva
开发者工具 clawhub v1.0.2 1 版本 100000 Key: 需要
★ 0
Stars
📥 580
下载
💾 9
安装
1
版本
#latest

概述

BookStack API Skill

Interact with a BookStack wiki through its REST API using the bundled Python script. No external dependencies beyond Python 3 standard library.

Configuration

Credentials live in ~/.clawdbot/clawdbot.json under the bookstack skill entry:

{
  "skills": {
    "entries": {
      "bookstack": {
        "env": {
          "BOOKSTACK_URL": "https://your-bookstack.example.com",
          "BOOKSTACK_TOKEN_ID": "your-token-id",
          "BOOKSTACK_TOKEN_SECRET": "your-token-secret"
        }
      }
    }
  }
}

Generate a token from BookStack: Profile > API Tokens > Create Token. The user's role needs the "Access System API" permission enabled.

Usage

All commands follow the pattern:

python3 scripts/bookstack.py <command> [args] [options]

Pass the env vars from the config above when executing.

Quick Reference

ActionCommand
-----------------
Search`search "query" [--type page\book\chapter]`
List pageslist_pages [--count N]
Read page`get_page [--content\--markdown]`
Create pagecreate_page --book-id --name "Title" --html "

content

"
Update pageupdate_page --html "

new content

"
Delete pagedelete_page

The same CRUD pattern applies to books, chapters, and shelves. For the full command list with all flags and options, see references/api-commands.md.

Important Notes

  • Cloudflare protection: The script sends a User-Agent header because BookStack instances behind Cloudflare reject requests without one (HTTP 403). If you get a 403, this is likely why.
  • Content formats: Pages accept HTML by default. Use --markdown for Markdown input. When reading, get_page --content returns HTML, --markdown returns Markdown.
  • Large HTML updates: For big page updates, prepare the HTML in a temp file and read it into the API call programmatically, rather than passing it inline on the command line.

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-03-30 16:38 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 666 📥 323,791
developer-tools

Gog

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

Ryot

f-liva
完整的Ryot媒体追踪器,支持进度追踪、评论、收藏、数据分析和日历功能,提供自动日报/周报,可追踪电视剧、电影等媒体。
★ 0 📥 933