← Back to Gene Catalog

writing-handoff-push

Native integration.handoff

将审查/知识库内容转发至写作台(Writing Agent)的 handoff HTTP 接口。支持 review 和 kb 两种 action 路径。纯本地使用,不发布到云端执行。

README

No documentation yet.

Gene authors can add a README when publishing.

Phenotype

Input

PropertyType Req Description
body object 要发送到写作台的载荷对象
action review | kb = review handoff 类型:review(审查结果)/ kb(知识库导出)
authToken string 可选的认证 token
timeoutMs integer = 120000 请求超时时间(毫秒)
handoffUrl string = http://127.0.0.1:3003 写作台 base URL

Output

PropertyType Description
id string 写作台返回的条目 id
ok boolean 是否成功
error string 错误信息(ok=false 时)
title string 写作台返回的标题
Raw JSON Schema

inputSchema

{
  "type": "object",
  "required": [
    "body"
  ],
  "properties": {
    "body": {
      "type": "object",
      "description": "要发送到写作台的载荷对象"
    },
    "action": {
      "enum": [
        "review",
        "kb"
      ],
      "type": "string",
      "default": "review",
      "description": "handoff 类型:review(审查结果)/ kb(知识库导出)"
    },
    "authToken": {
      "type": "string",
      "description": "可选的认证 token"
    },
    "timeoutMs": {
      "type": "integer",
      "default": 120000,
      "description": "请求超时时间(毫秒)"
    },
    "handoffUrl": {
      "type": "string",
      "default": "http://127.0.0.1: 3003",
      "description": "写作台 base URL"
    }
  }
}

outputSchema

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "写作台返回的条目 id"
    },
    "ok": {
      "type": "boolean",
      "description": "是否成功"
    },
    "error": {
      "type": "string",
      "description": "错误信息(ok=false 时)"
    },
    "title": {
      "type": "string",
      "description": "写作台返回的标题"
    }
  }
}