Query the agent that references this tool¶
Lists the agents in the current workspace that are effectively bound to the specified tool. This interface returns the display summary of the agent, but does not return the complete definition of the agent.
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/tools/{tool_id}/referencing-agents
Before you call¶
Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. First query the tool list to obtain the tool ID. Prepare a personal access token and target workspace ID that can access the target workspace.
Request parameters¶
curl "$CLOUDSIGMA_API_BASE/workspaces/$WORKSPACE_ID/tools/$TOOL_ID/referencing-agents?limit=20" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Path parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
Query the current workspace ID of the reference relationship. |
|
string |
Yes |
The referenced tool ID. |
Query parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
No |
The workspace to which the resource in the reference belongs. Matches the current workspace when omitted or empty. The explicit value must be a legal workspace identifier. This parameter does not trigger a system catalog rollback. |
|
integer |
No |
Quantity per page. Default |
|
string |
No |
|
Successful response¶
{
"code": 0,
"data": {
"items": [
{
"id": "agent_01",
"workspace_id": "ws_01",
"name": "数据助手",
"status": "active",
"description": "",
"updated_at": "2026-01-02T15:04:05Z",
"knowledge_base_count": 1
}
],
"limit": 20,
"next_cursor": "cursor_01"
}
}
Field |
Type |
Description |
|---|---|---|
|
integer |
|
|
object |
The result of this request. |
|
array |
Result list. |
|
string |
agent ID. Can be omitted if empty or not set. |
|
string |
The identity of the workspace to which it belongs. Can be omitted if empty or not set. |
|
string |
Name. Can be omitted if empty or not set. |
|
string |
Description. Can be omitted if empty or not set. |
|
string |
status. Can be omitted if empty or not set. |
|
string |
Last updated time. Use RFC 3339 format. Can be omitted if empty or not set. |
|
integer |
The number of bound knowledge bases. Can be omitted if empty or not set. |
|
integer |
The actual return quantity limit this time. |
|
string |
Next page cursor. Can be omitted if empty or not set. |
Error response¶
{
"code": 2,
"message": "<错误信息>"
}
Common HTTP errors
HTTP status code |
error code |
Description |
|---|---|---|
|
|
Common reasons: The tool ID, |
|
|
Common Cause: Valid identity credentials are missing. Recommended Action: Check the API Key. |
|
|
Common reasons: The current identity does not have permission to read the tool or candidate agent. Recommended Action: Check the workspace authorization. |
|
|
Common reasons: The tool or agent reference service is temporarily unavailable. Recommended Action: Try again later. |