用途:该技能用于通过 Membrane CLI 与 Hashnode 交互,适合需要读取或管理 Hashnode 数据(用户、出版物、文章等)的场景。
主要能力:提供预置动作,包括获取用户公开资料(get-user)、添加评论(add-comment)、更新文章(update-post)、创建草稿(create-draft)、发布文章(publish-post)、按 slug 获取文章(get-post)、分页列出出版物文章(list-posts)、按主机获取出版物(get-publication)、获取当前用户的出版物(get-my-publications)以及获取当前用户信息(get-me)。
使用方式:先安装 CLI:npm install -g @membranehq/cli@latest,然后执行 membrane login --tenant --clientName=<agentType> 进行登录;无界面环境会打印授权 URL,登录后执行 membrane login complete <code>。接着用 membrane connection ensure "https://hashnode.com/" --json 建立连接,若状态为 BUILDING 可轮询 membrane connection get <id> --wait --json 直到 READY。用 membrane action list --connectionId=CONNECTION_ID --intent "QUERY" --limit 10 --json 搜索动作,用 membrane action run <actionId> --connectionId=CONNECTION_ID --input '{"key": "value"}' --json 运行动作。可用 membrane request CONNECTION_ID /path/to/endpoint 通过代理直接调用 Hashnode API。
限制:认证由 Membrane 处理,不应向用户索取 API 密钥或令牌。官方文档为 https://api.hashnode.com。部分动作的具体参数与返回结构需在运行时查看 inputSchema/outputSchema;价格、收费、平台支持等细节暂未提供。