与 Alexandrie 笔记应用交互,访问地址:https://notes.eth3rnit3.org
https://api-notes.eth3rnit3.org/apihttps://notes.eth3rnit3.orgeth3rnit3671423603690045441/home/eth3rnit3/clawd/.env 文件中,键名为 ALEXANDRIE_PASSWORD所有操作均通过 alexandrie.sh 脚本执行:
/home/eth3rnit3/clawd/skills/alexandrie/alexandrie.sh <命令> [参数]
./alexandrie.sh login # 登录并获取令牌
./alexandrie.sh logout # 登出
./alexandrie.sh list # 列出所有笔记/分类
./alexandrie.sh get <节点ID> # 获取指定笔记及其内容
./alexandrie.sh search <查询词> # 搜索笔记
./alexandrie.sh create <名称> [内容] [父节点ID] # 创建笔记
./alexandrie.sh update <节点ID> <名称> [内容] # 更新笔记
./alexandrie.sh delete <节点ID> # 删除笔记
671425872858841091 - Perso(分类)671426069886271492 - Test(文档)./alexandrie.sh login
./alexandrie.sh list
./alexandrie.sh get 671426069886271492
# 返回: "Salut, ceci est un **test**"
./alexandrie.sh create "我的笔记" "# 标题\n\n内容在此" 671425872858841091
./alexandrie.sh search "test"
基础 URL: https://api-notes.eth3rnit3.org/api
POST /auth - 登录(请求体: {"username": "...", "password": "..."})POST /auth/logout - 登出GET /nodes/user/:userId - 列出用户的所有节点GET /nodes/:nodeId - 根据 ID 获取节点(包含内容)GET /nodes/search?q=查询词 - 搜索节点POST /nodes - 创建节点PUT /nodes/:nodeId - 更新节点DELETE /nodes/:nodeId - 删除节点登录后,JWT 令牌会存储在 cookie 中(文件路径:/tmp/alexandrie_cookies.txt)。