List Agents
Lists agents in the current workspace with pagination, sorted by created_at in descending order. Archived items are excluded by default; pass include_archived=true to include them.
Prerequisites
Endpoint and authentication configured. For details, see Overview and authentication.
Endpoint
/agentsQuery parameters
limitintOptionalNumber of items per page. Default: 20, maximum: 100
pagestringOptionalPagination cursor. Omit for the first request; pass the next_page value from the previous response to fetch the next page
include_archivedboolOptionalWhether to include archived agents. Default: false
Request example
curl "$AGENTSTUDIO_URL/agents?limit=20&include_archived=true" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY"
for agent in client.agents.list(limit=20, include_archived=True):
print(agent.id, agent.name, agent.model['id'])
CursorPage<Agent> page = client.agents().list(AgentListParam.builder()
.limit(20).includeArchived(true).build());
for (Agent a : page.getData()) System.out.println(a.getId() + " " + a.getName());
Response fields
dataarray<Agent>Array of Agent objects
data[] Agent object fields
idstringAgent ID, format: agent_<ULID>
typestringAlways agent
versionintCurrent version number, auto-incremented on each update
namestringAgent name
descriptionstringDescription
systemstringSystem prompt
modelobjectModel configuration, including id and other model parameters
model properties
idstringModel ID, e.g. qwen3.7-max
enable_thinkingbooleanWhether to enable thinking mode
max_tokensintegerMaximum generation length
temperaturenumberTemperature that controls randomness
thinking_budgetintegerThinking budget length
toolsarray<object>Toolkit list, grouped by type
tools properties
typestringbuiltin_toolkit or mcp_toolkit
default_configobjectDefault tool config with enabled and permission_policy
configsarray<object>Per-tool config that overrides default_config; supports params
mcp_server_namestringRequired for MCP tools
mcp_serversarray<object>MCP server reference list
mcp_servers properties
typestringofficial or customer
namestringMCP server name
skillsarray<object>Mounted skill list
skills properties
typestringofficial or customer
skill_idstringSkill ID
versionstringMust be a concrete version number
multiagentobjectMulti-agent configuration
multiagent properties
typestringCurrently only coordinator
agentsarray<object>Fleet entries (1-20); each contains type, id, and version
metadataobjectCustom business key-value pairs that do not affect model behavior.
archived_atstring | nullArchive timestamp; null if not archived
created_atstringCreation time (ISO 8601)
updated_atstringLast update time (ISO 8601)
workspace_idstringWorkspace ID
model properties
idstringModel ID, e.g. qwen3.7-max
enable_thinkingbooleanWhether to enable thinking mode
max_tokensintegerMaximum generation length
temperaturenumberTemperature that controls randomness
thinking_budgetintegerThinking budget length
tools properties
typestringbuiltin_toolkit or mcp_toolkit
default_configobjectDefault tool config with enabled and permission_policy
configsarray<object>Per-tool config that overrides default_config; supports params
mcp_server_namestringRequired for MCP tools
mcp_servers properties
typestringofficial or customer
namestringMCP server name
skills properties
typestringofficial or customer
skill_idstringSkill ID
versionstringMust be a concrete version number
multiagent properties
typestringCurrently only coordinator
agentsarray<object>Fleet entries (1-20); each contains type, id, and version
next_pagestring / nullCursor for the next page; absent or null when there is no more data
Response example
{
"data": [
{
"type": "agent",
"id": "agent_xxx",
"name": "data-analyst",
"model": {
"id": "qwen3.8-max",
"temperature": null,
"max_tokens": null,
"enable_thinking": null,
"thinking_budget": null
},
"system": "You are a data analysis expert.",
"description": "Data analysis assistant",
"tools": [],
"mcp_servers": [],
"skills": [],
"multiagent": null,
"metadata": {},
"version": 1,
"created_at": "2026-05-28T16:23:11.456+08:00",
"updated_at": "2026-05-28T16:30:00.000+08:00",
"archived_at": null,
"workspace_id": "ws_xxx",
"request_id": "req_xxx"
}
],
"next_page": "agent_xxx",
"request_id": null
}