Query tool details¶
Read the current workspace tool or readable system tool. The detailed response includes input and output Schema.
GET $CLOUDSIGMA_API_BASE/workspaces/{workspace_id}/tools/{tool_id}
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" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Path parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
Current workspace ID. |
|
string |
Yes |
The tool ID to query. |
Query parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
No |
The workspace ID to which the tool belongs. If not provided, the current workspace is used. Only the current workspace or system workspace can be specified. |
Successful response¶
{
"code": 0,
"data": {
"id": "tool_01",
"workspace_id": "ws_01",
"name": "查询工具",
"status": "active",
"kind": "http_api",
"input_schema": {},
"output_schema": {},
"side_effect_class": "read",
"version": 1,
"bindable": true,
"supported_runtimes": [],
"display_name": "示例工具",
"source_ref": {},
"sync": {},
"created_at": "2026-01-02T15:04:05Z",
"updated_at": "2026-01-02T15:04:05Z"
}
}
Field |
Type |
Description |
|---|---|---|
|
integer |
|
|
object |
The result of this request. |
|
string |
Tool ID. |
|
string |
The identity of the workspace to which it belongs. |
|
string |
Name. |
|
string |
Description. Can be omitted if empty or not set. |
|
string |
Display name. |
|
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 |
An empty object is returned when the source information has 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 |
An empty object is returned when the synchronization information has 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. |
|
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. |
|
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. |
|
string |
Last updated time. Use RFC 3339 format. |
Error response¶
{
"code": 3,
"message": "tool not found"
}
Common HTTP errors
HTTP status code |
error code |
Description |
|---|---|---|
|
|
Common Cause: Invalid path or |
|
|
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. Recommended Action: Check the workspace authorization. |
|
|
Common reasons: The tool does not exist within the specified workspace range. Recommended Action: Check the tool ID and the workspace it belongs to. |
|
|
Common reasons: Tool resource services or authorization dependencies are temporarily unavailable. Recommended Action: Try again later. |