返回技能元数据与最新版本号。响应结构与创建技能一致。仅 active 状态可挂载到智能体,挂载时不能锁定到 latest,必须指定具体版本号。
前提
已完成 Endpoint 与鉴权配置,详见API 总览与认证。
接口
GET
/skills/{skill_id}路径参数
skill_idstring必填Skill ID,格式 skill_xxx
响应字段
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
request_idstring本次请求的唯一标识
请求示例
curl "$AGENTSTUDIO_URL/skills/skill_xxx" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY"
skill = client.skills.retrieve("skill_xxx")
print(skill.name, skill.latest_version)
Skill s = client.skills().retrieve("skill_xxx");
System.out.println(s.getName() + " " + s.getLatestVersion());
响应示例
{
"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:03Z",
"updated_at": "2026-06-16T08:12:47Z",
"request_id": "xxx"
}
该文章对您有帮助吗?