跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://docs.hybridbox.io/llms.txt

Use this file to discover all available pages before exploring further.

工作区

管理工作区和工作区成员关系。 示例使用 A2A 代码模式。MCP 通过 execute 工具公开相同的代码模式。

函数

workspaces.add

workspaces.add(account_id: str, name: str) -> Workspace
工作区: workspaces.add.
属性属性
所需权限workspace.manage需要身份验证
执行模式sync能力workspace.manage
资源类型account资源 ID 字段account_id
公共 API 路由POST /v1/public/accounts/{account_id}/workspaces
名称类型必需
account_idstr
namestr
字段类型必需
account_idstr
idstr
namestr
created_atstr | null
statusstr
updated_atstr | null
请求:
{
  "request_id": "example",
  "session_id": "session_123",
  "code": "workspaces.add(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", name=\"<string>\")"
}
响应:
{
  "request_id": "example",
  "status": "completed",
  "result": {
    "last_value": "<string>"
  },
  "responses": [
    {
      "index": 0,
      "function": "workspaces.add",
      "status": "completed",
      "result": "<string>"
    }
  ],
  "complexity_score": 1
}
请求:
{
  "jsonrpc": "2.0",
  "id": "example",
  "method": "tools/call",
  "params": {
    "name": "hybridbox_execute",
    "arguments": {
      "code": "workspaces.add(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", name=\"<string>\")"
    }
  }
}
响应:
{
  "jsonrpc": "2.0",
  "id": "example",
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": \"<string>\"\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"workspaces.add\",\n      \"status\": \"completed\",\n      \"result\": \"<string>\"\n    }\n  ],\n  \"complexity_score\": 1\n}"
      }
    ],
    "isError": false
  }
}

workspaces.delete

workspaces.delete(account_id: str, workspace_id: str) -> {}
工作区: workspaces.delete.
属性属性
所需权限workspace.manage需要身份验证
执行模式sync能力workspace.manage
资源类型account资源 ID 字段account_id
公共 API 路由DELETE /v1/public/accounts/{account_id}/workspaces/{workspace_id}
名称类型必需
account_idstr
workspace_idstr
字段类型必需
result{}
请求:
{
  "request_id": "example",
  "session_id": "session_123",
  "code": "workspaces.delete(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", workspace_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\")"
}
响应:
{
  "request_id": "example",
  "status": "completed",
  "result": {
    "last_value": {}
  },
  "responses": [
    {
      "index": 0,
      "function": "workspaces.delete",
      "status": "completed",
      "result": {}
    }
  ],
  "complexity_score": 1
}
请求:
{
  "jsonrpc": "2.0",
  "id": "example",
  "method": "tools/call",
  "params": {
    "name": "hybridbox_execute",
    "arguments": {
      "code": "workspaces.delete(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", workspace_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\")"
    }
  }
}
响应:
{
  "jsonrpc": "2.0",
  "id": "example",
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": {}\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"workspaces.delete\",\n      \"status\": \"completed\",\n      \"result\": {}\n    }\n  ],\n  \"complexity_score\": 1\n}"
      }
    ],
    "isError": false
  }
}

workspaces.get

workspaces.get(account_id: str, workspace_id: str) -> Workspace
工作区: workspaces.get.
属性属性
所需权限workspace.view需要身份验证
执行模式sync能力workspace.view
资源类型account资源 ID 字段account_id
公共 API 路由GET /v1/public/accounts/{account_id}/workspaces/{workspace_id}
名称类型必需
account_idstr
workspace_idstr
字段类型必需
account_idstr
idstr
namestr
created_atstr | null
statusstr
updated_atstr | null
请求:
{
  "request_id": "example",
  "session_id": "session_123",
  "code": "workspaces.get(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", workspace_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\")"
}
响应:
{
  "request_id": "example",
  "status": "completed",
  "result": {
    "last_value": "<string>"
  },
  "responses": [
    {
      "index": 0,
      "function": "workspaces.get",
      "status": "completed",
      "result": "<string>"
    }
  ],
  "complexity_score": 1
}
请求:
{
  "jsonrpc": "2.0",
  "id": "example",
  "method": "tools/call",
  "params": {
    "name": "hybridbox_execute",
    "arguments": {
      "code": "workspaces.get(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", workspace_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\")"
    }
  }
}
响应:
{
  "jsonrpc": "2.0",
  "id": "example",
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": \"<string>\"\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"workspaces.get\",\n      \"status\": \"completed\",\n      \"result\": \"<string>\"\n    }\n  ],\n  \"complexity_score\": 1\n}"
      }
    ],
    "isError": false
  }
}

workspaces.list

workspaces.list(account_id: str, page?: int, page_size?: int) -> Page[Workspace]
工作区: workspaces.list.
属性属性
所需权限workspace.view需要身份验证
执行模式sync能力workspace.view
资源类型account资源 ID 字段account_id
公共 API 路由GET /v1/public/accounts/{account_id}/workspaces
名称类型必需
account_idstr
pageint
page_sizeint
字段类型必需
items[{"account_id": str, "id": str, "name": str, "created_at"?: str | null, "status"?: str, "updated_at"?: str | null}]
pageint
page_sizeint
totalint
请求:
{
  "request_id": "example",
  "session_id": "session_123",
  "code": "workspaces.list(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", page=123, page_size=123)"
}
响应:
{
  "request_id": "example",
  "status": "completed",
  "result": {
    "last_value": "<string>"
  },
  "responses": [
    {
      "index": 0,
      "function": "workspaces.list",
      "status": "completed",
      "result": "<string>"
    }
  ],
  "complexity_score": 1
}
请求:
{
  "jsonrpc": "2.0",
  "id": "example",
  "method": "tools/call",
  "params": {
    "name": "hybridbox_execute",
    "arguments": {
      "code": "workspaces.list(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", page=123, page_size=123)"
    }
  }
}
响应:
{
  "jsonrpc": "2.0",
  "id": "example",
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": \"<string>\"\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"workspaces.list\",\n      \"status\": \"completed\",\n      \"result\": \"<string>\"\n    }\n  ],\n  \"complexity_score\": 1\n}"
      }
    ],
    "isError": false
  }
}

workspaces.update

workspaces.update(account_id: str, workspace_id: str, name: str) -> Workspace
工作区: workspaces.update.
属性属性
所需权限workspace.manage需要身份验证
执行模式sync能力workspace.manage
资源类型account资源 ID 字段account_id
公共 API 路由PATCH /v1/public/accounts/{account_id}/workspaces/{workspace_id}
名称类型必需
account_idstr
workspace_idstr
namestr
字段类型必需
account_idstr
idstr
namestr
created_atstr | null
statusstr
updated_atstr | null
请求:
{
  "request_id": "example",
  "session_id": "session_123",
  "code": "workspaces.update(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", workspace_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", name=\"<string>\")"
}
响应:
{
  "request_id": "example",
  "status": "completed",
  "result": {
    "last_value": "<string>"
  },
  "responses": [
    {
      "index": 0,
      "function": "workspaces.update",
      "status": "completed",
      "result": "<string>"
    }
  ],
  "complexity_score": 1
}
请求:
{
  "jsonrpc": "2.0",
  "id": "example",
  "method": "tools/call",
  "params": {
    "name": "hybridbox_execute",
    "arguments": {
      "code": "workspaces.update(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", workspace_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", name=\"<string>\")"
    }
  }
}
响应:
{
  "jsonrpc": "2.0",
  "id": "example",
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": \"<string>\"\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"workspaces.update\",\n      \"status\": \"completed\",\n      \"result\": \"<string>\"\n    }\n  ],\n  \"complexity_score\": 1\n}"
      }
    ],
    "isError": false
  }
}