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