Query skill details¶
Read the skills in the current workspace. When the workspace to which the skill belongs is not specified, the service will first check the current workspace; if it is not found and the current workspace is not the system workspace, it will then search for the system skill with the same ID.
GET https://moi.matrixorigin.cn/newmoi/workspaces/{workspace_id}/skills/{skill_id}
Before you call¶
First query the skill list to obtain the skill ID. Prepare a personal access token and target workspace ID that has access to the target workspace.
The example below uses:
$AI_STUDIO_API_KEY: The actual personal access token, passed through theX-API-KeyHeader.$WORKSPACE_ID: Target workspace ID, passed throughX-Workspace-IDHeader.$SKILL_ID: The skill ID to be queried.
Request example¶
curl "https://moi.matrixorigin.cn/newmoi/workspaces/$WORKSPACE_ID/skills/$SKILL_ID" \
-H "X-API-Key: $AI_STUDIO_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Path parameters¶
Parameters |
Type |
Is it required |
Description |
|---|---|---|---|
|
string |
Yes |
The current workspace ID. |
|
string |
Yes |
The skill ID to be queried. |
Query parameters¶
Parameters |
Type |
Is it required |
Description |
|---|---|---|---|
|
string |
No |
The workspace to which the skill belongs; can only be the current workspace or |
Successful response¶
Returns 200 and the skill’s complete definition on success.
{
"code": 0,
"data": {
"id": "skill_01",
"workspace_id": "ws_01",
"name": "摘要技能",
"description": "总结输入内容。",
"status": "active",
"source_type": "custom",
"instruction": {
"body": "总结用户提供的内容。"
},
"requirements": {
"tool_refs": ["tool_01"]
},
"version": 2,
"created_at": "2026-01-02T15:04:05Z",
"updated_at": "2026-01-03T10:00:00Z"
}
}
The response fields are as follows.
Field |
Type |
Description |
|---|---|---|
|
integer |
|
|
string |
Skill ID and the workspace to which it belongs; the workspace of the system skill is |
|
string |
Skill ID and the workspace to which it belongs; the workspace of the system skill is |
|
string |
Basic information and status of the skill. |
|
string |
Basic information and status of the skill. |
|
string |
Basic information and status of the skill. |
|
string |
Source type and source reference. |
|
string |
Source type and source reference. |
|
object |
Summary of commands and routes. |
|
object |
Summary of commands and routes. |
|
object |
Required skills, tools, knowledge base roles, file input, and model capabilities. |
|
object |
Input Schema and output convention. |
|
object |
Input Schema and output convention. |
|
integer |
Current skill version. |
Error response¶
{
"code": 2,
"message": "<错误信息>"
}
Common HTTP errors¶
HTTP status code |
error code |
Common causes |
Recommended actions |
|---|---|---|---|
|
|
Invalid path parameter or |
Check skill ID and workspace scope. |
|
|
Lack of valid identity credentials. |
Check API Key. |
|
|
The current identity does not have permission to read skills. |
Check workspace authorization. |
|
|
This skill does not exist in the current or rollback system directories. |
Check the skill ID, or provide |
|
|
Skill services or authorized dependencies are temporarily unavailable. |
Try again later. |
Follow-up operations¶
When modifications are needed Update skills. When returning to the list Query skill list.