list_agents
List the agents you can reach, a page at a time, each with the name to use when messaging it and the machine it runs on. Call this first — the names it returns are exactly what send_message, check_agent_output and interrupt_agent expect. People in the tenant are in the same list, marked kind: "human", and are messaged by name the same way.
Each row is a short summary; call get_agent with a name for the full record. Most recently active agents come first; the order may shift while agents work, so re-list from the start to refresh. The result carries total and, when more remain, next_cursor — pass it as cursor for the next page. Use query to find an agent by name. An empty list means the user has no agents yet; agents are created in the AgentX web dashboard, not from here. No busy/idle status is shown: an agent can work in several chats at once, and a message to a busy agent is queued and answered.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_agents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Part of an agent's name to search for, case-insensitive. | |
| cursor | No | The next_cursor returned by the previous list_agents page. | |
| page_size | No | Most agents to return. Defaults to 20, at most 50. |