Query tool list¶
Lists the current workspace and system tools that can be read by the current identity. Lists do not return large input and output schemas by default. Explicitly request the full view when needed.
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/tools
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. 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?kind=http_api&limit=20&offset=0" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Path parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
Current workspace ID. |
Query parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
No |
Filter by tool properties. |
|
string |
No |
Filter by tool properties. |
|
string |
No |
Filter by tool properties. |
|
string |
No |
Filter by tool properties. |
|
string |
No |
Filter by tool properties. |
|
string |
No |
Filter by tool properties. |
|
string |
No |
Filter by runtime visibility, binding type, or directory. |
|
string |
No |
Filter by runtime visibility, binding type, or directory. |
|
string |
No |
Filter by runtime visibility, binding type, or directory. |
|
string |
No |
Filter by tag. May be provided repeatedly. |
|
boolean |
No |
When it is |
|
string |
No |
|
|
integer |
No |
Returns the quantity and starting offset. If not provided, the default is 50 bar, offset 0. |
|
integer |
No |
Returns the quantity and starting offset. If not provided, the default is 50 bar, offset 0. |
Successful response¶
{
"code": 0,
"data": {
"items": [
{
"id": "tool_01",
"workspace_id": "ws_01",
"name": "查询工具",
"display_name": "查询工具",
"status": "active",
"kind": "http_api",
"side_effect_class": "read",
"version": 1,
"bindable": true,
"supported_runtimes": [],
"source_ref": {},
"sync": {},
"created_at": "2026-01-02T15:04:05Z",
"updated_at": "2026-01-02T15:04:05Z"
}
],
"total": 1,
"limit": 20,
"offset": 0
}
}
Field |
Type |
Description |
|---|---|---|
|
integer |
|
|
object |
The result of this request. |
|
array |
Result list. |
|
string |
Tool 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 |
Display name. Can be omitted if empty or not set. |
|
string |
Show instructions. Can be omitted if empty or not set. |
|
string |
status. Preferable |
|
string |
Tool type. Preferable |
|
string |
classification. Can be omitted if empty or not set. |
|
string |
Icon reference. Can be omitted if empty or not set. |
|
array |
label. Can be omitted if empty or not set. |
|
string |
use stage. Can be omitted if empty or not set. |
|
object |
Market metadata. Can be omitted if empty or not set. |
|
object |
Source information. Can be omitted if empty or not set. Returns an empty object if there are no subfields. |
|
string |
Source type. Can be omitted if empty or not set. |
|
string |
Source object ID, the specific type is specified by |
|
string |
Source address. Can be omitted if empty or not set. |
|
string |
Version number. Can be omitted if empty or not set. |
|
object |
Resource allocation. Can be omitted if empty or not set. |
|
object |
Tool input JSON Schema. Can be omitted if empty or not set. |
|
object |
The tool outputs JSON Schema. Can be omitted if empty or not set. |
|
string |
Classification of side effects. Preferable |
|
string |
Credentials reference. Can be omitted if empty or not set. |
|
string |
Approval policy reference. Can be omitted if empty or not set. |
|
string |
Desensitization strategies cited. Can be omitted if empty or not set. |
|
object |
Sync information. Can be omitted if empty or not set. Returns an empty object if there are no subfields. |
|
string |
status. Can be omitted if empty or not set. |
|
string or null |
Last sync time. Can be omitted if empty or not set. |
|
string |
Recent sync errors. Can be omitted if empty or not set. |
|
integer |
Version number. Can be omitted if empty or not set. |
|
object |
Extension tag. Can be omitted if empty or not set. |
|
object |
Extended comments. Can be omitted if empty or not set. |
|
object |
Extended metadata. Can be omitted if empty or not set. |
|
boolean |
Whether it can be bound. Can be omitted if empty or not set. |
|
string |
Description of binding capabilities. Can be omitted if empty or not set. |
|
array |
Supported runtimes. Can be omitted if empty or not set. |
|
string |
Creator ID. Can be omitted if empty or not set. |
|
string |
Last updated by identifier. Can be omitted if empty or not set. |
|
string |
Creation time. Use RFC 3339 format. 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 total number of matching records. |
|
integer |
The actual return quantity limit this time. |
|
integer |
Starting offset. |
Error response¶
{
"code": 2,
"message": "<错误信息>"
}
Common HTTP errors
HTTP status code |
error code |
Description |
|---|---|---|
|
|
Common reasons: The filter or paging parameters are invalid. Recommended Action: Check the query parameters. |
|
|
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 directory. Recommended Action: Check the workspace authorization. |
|
|
Common reasons: Tool resource services or authorization dependencies are temporarily unavailable. Recommended Action: Try again later. |