工作区
管理工作区和工作区成员关系。 示例使用 A2A 代码模式。MCP 通过execute 工具公开相同的代码模式。
函数
workspaces.add
workspaces.add.
| 属性 | 值 | 属性 | 值 |
|---|---|---|---|
| 所需权限 | workspace.manage | 需要身份验证 | 是 |
| 执行模式 | sync | 能力 | workspace.manage |
| 资源类型 | account | 资源 ID 字段 | account_id |
| 公共 API 路由 | POST /v1/public/accounts/{account_id}/workspaces |
参数
参数
| 名称 | 类型 | 必需 |
|---|---|---|
account_id | str | 是 |
name | str | 是 |
返回值
返回值
| 字段 | 类型 | 必需 |
|---|---|---|
account_id | str | 是 |
id | str | 是 |
name | str | 是 |
created_at | str | null | 否 |
status | str | 否 |
updated_at | str | null | 否 |
A2A 示例
A2A 示例
请求:响应:
MCP 示例
MCP 示例
请求:响应:
workspaces.delete
workspaces.delete.
| 属性 | 值 | 属性 | 值 |
|---|---|---|---|
| 所需权限 | workspace.manage | 需要身份验证 | 是 |
| 执行模式 | sync | 能力 | workspace.manage |
| 资源类型 | account | 资源 ID 字段 | account_id |
| 公共 API 路由 | DELETE /v1/public/accounts/{account_id}/workspaces/{workspace_id} |
参数
参数
| 名称 | 类型 | 必需 |
|---|---|---|
account_id | str | 是 |
workspace_id | str | 是 |
返回值
返回值
| 字段 | 类型 | 必需 |
|---|---|---|
result | {} | 是 |
A2A 示例
A2A 示例
请求:响应:
MCP 示例
MCP 示例
请求:响应:
workspaces.get
workspaces.get.
| 属性 | 值 | 属性 | 值 |
|---|---|---|---|
| 所需权限 | workspace.view | 需要身份验证 | 是 |
| 执行模式 | sync | 能力 | workspace.view |
| 资源类型 | account | 资源 ID 字段 | account_id |
| 公共 API 路由 | GET /v1/public/accounts/{account_id}/workspaces/{workspace_id} |
参数
参数
| 名称 | 类型 | 必需 |
|---|---|---|
account_id | str | 是 |
workspace_id | str | 是 |
返回值
返回值
| 字段 | 类型 | 必需 |
|---|---|---|
account_id | str | 是 |
id | str | 是 |
name | str | 是 |
created_at | str | null | 否 |
status | str | 否 |
updated_at | str | null | 否 |
A2A 示例
A2A 示例
请求:响应:
MCP 示例
MCP 示例
请求:响应:
workspaces.list
workspaces.list.
| 属性 | 值 | 属性 | 值 |
|---|---|---|---|
| 所需权限 | workspace.view | 需要身份验证 | 是 |
| 执行模式 | sync | 能力 | workspace.view |
| 资源类型 | account | 资源 ID 字段 | account_id |
| 公共 API 路由 | GET /v1/public/accounts/{account_id}/workspaces |
参数
参数
| 名称 | 类型 | 必需 |
|---|---|---|
account_id | str | 是 |
page | int | 否 |
page_size | int | 否 |
返回值
返回值
| 字段 | 类型 | 必需 |
|---|---|---|
items | [{"account_id": str, "id": str, "name": str, "created_at"?: str | null, "status"?: str, "updated_at"?: str | null}] | 是 |
page | int | 是 |
page_size | int | 是 |
total | int | 是 |
A2A 示例
A2A 示例
请求:响应:
MCP 示例
MCP 示例
请求:响应:
workspaces.update
workspaces.update.
| 属性 | 值 | 属性 | 值 |
|---|---|---|---|
| 所需权限 | workspace.manage | 需要身份验证 | 是 |
| 执行模式 | sync | 能力 | workspace.manage |
| 资源类型 | account | 资源 ID 字段 | account_id |
| 公共 API 路由 | PATCH /v1/public/accounts/{account_id}/workspaces/{workspace_id} |
参数
参数
| 名称 | 类型 | 必需 |
|---|---|---|
account_id | str | 是 |
workspace_id | str | 是 |
name | str | 是 |
返回值
返回值
| 字段 | 类型 | 必需 |
|---|---|---|
account_id | str | 是 |
id | str | 是 |
name | str | 是 |
created_at | str | null | 否 |
status | str | 否 |
updated_at | str | null | 否 |
A2A 示例
A2A 示例
请求:响应:
MCP 示例
MCP 示例
请求:响应: