列出 Skill

更新时间:
复制 MD 格式

cursor 分页列出技能,按 created_at 倒序。支持按来源过滤(自建或阿里云百炼官方)。仅 active 状态可挂载到智能体。

前提

已完成 Endpoint 与鉴权配置,详见API 总览与认证。

接口

GET/skills

查询参数

limitint默认 20

每页数量,最大 100

pagestring默认 —

首次不传,后续传上一次响应的 next_page

sourcestring默认 customer

来源筛选:customer(自建)或 official(阿里云百炼官方)

请求示例

curl "$AGENTSTUDIO_URL/skills?source=customer&limit=20" \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY"
for skill in client.skills.list(source="customer", limit=20):
    print(skill.id, skill.name)
CursorPage<Skill> page = client.skills().list(SkillListParam.builder()
    .source("customer").limit(20).build());
for (Skill s : page.getData()) System.out.println(s.getId() + " " + s.getName());

响应示例

{
  "data": [
    {
      "id": "skill_xxx",
      "type": "skill",
      "name": "pdf3.0",
      "description": "Use this skill whenever the user wants to do anything with PDF files...",
      "source": "customer",
      "status": "active",
      "latest_version": "1.1",
      "created_at": "2026-06-16T07:56:03+00:00",
      "updated_at": "2026-06-16T08:12:47+00:00"
    }
  ],
  "next_page": "skill_xxx",
  "request_id": "xxx"
}

响应包含 data(Skill 对象数组)与 next_page。Skill 对象字段如下:

响应字段

dataarray<Skill>

Skill 对象数组

data[] Skill 对象字段

idstring

技能 ID,格式 skill_xxx

typestring

固定为 skill

namestring

从 zip 包内 SKILL.md 解析得到

descriptionstring

从 zip 包内 SKILL.md 解析得到

sourcestring

来源:customer(自建) / official(阿里云百炼官方)

statusstring

扫描状态:checking / active / rejected / deleted,仅 active 可挂载

latest_versionstring

最新版本号,挂载到智能体时不能锁定到 latest,必须指定具体版本号

created_atstring

创建时间,ISO 8601

updated_atstring

最近更新时间,ISO 8601

next_pagestring / null

下一页游标;无更多数据时不返回或为 null

request_idstring

本次请求的唯一标识