Agent groups Tools
Agent groups: which agents work together and who leads them.
Available Tools
agentGroups_listList the agent groups. Each: id, name, parentGroupId (set on a sub-group), leadAgentId, members (each agent's id and name). Agents in one group may hand off to and ask each other; a group's Lead may also reach the other groups' Leads.
Example Call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "agentGroups_list",
"arguments": {}
}
}agentGroups_createCreate an agent group. Params: name (one line, at most 80 characters, unique in the workspace), parentGroupId? (makes it a sub-group; at most 3 levels). Returns { id }. A group gives its agents no tool, connection or right: only who they may talk to.
Input Schema
name | stringrequired | The group's name: one line, at most 80 characters, unique in the workspace. |
parentGroupId | string | Make it a sub-group of this group (its id); leave it out for a top-level group. |
Example Call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "agentGroups_create",
"arguments": {
"name": "example",
"parentGroupId": "example"
}
}
}agentGroups_renameRename an agent group. Params: groupId, name (one line, unique in the workspace).
Input Schema
groupId | stringrequired | The group id |
name | stringrequired | The group's name: one line, at most 80 characters, unique in the workspace. |
Example Call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "agentGroups_rename",
"arguments": {
"groupId": "example",
"name": "example"
}
}
}agentGroups_addAgentAdd an agent to a group. Params: groupId, agentId (aiAgent_listSpecialists). Agents in one group may hand off to and ask each other without a "Can hand off to" entry; each still acts with its own rights. At most 50 agents per group. A person is refused when an agent put in touch holds something they may not use (a tool, connection, power or secret, such as “Use secrets” or “Send email to contacts”); the refusal names the permission and whom to ask.
Input Schema
groupId | stringrequired | The group id |
agentId | stringrequired | The agent id (aiAgent_listSpecialists) |
Example Call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "agentGroups_addAgent",
"arguments": {
"groupId": "example",
"agentId": "example"
}
}
}agentGroups_removeAgentTake an agent out of a group. Params: groupId, agentId. The agent stays in the workspace; if it was the Lead, the group has no Lead.
Input Schema
groupId | stringrequired | The group id |
agentId | stringrequired | The agent id |
Example Call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "agentGroups_removeAgent",
"arguments": {
"groupId": "example",
"agentId": "example"
}
}
}agentGroups_setLeadSet a group's Lead. Params: groupId, agentId (one of the group's agents, or null for no Lead). Leads may hand off to and ask the other groups' Leads. A person is refused when an agent put in touch holds something they may not use (a tool, connection, power or secret, such as “Use secrets” or “Send email to contacts”); the refusal names the permission and whom to ask.
Input Schema
groupId | stringrequired | The group id |
agentId | stringnullrequired | The agent to make Lead (one of the group's agents) |
Example Call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "agentGroups_setLead",
"arguments": {
"groupId": "example",
"agentId": {}
}
}
}agentGroups_deleteDelete an agent group. Params: groupId. Its agents stay in the workspace; a group with sub-groups can't be deleted until they are. Act only on what the person named or picked.
Input Schema
groupId | stringrequired | The group id |
Example Call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "agentGroups_delete",
"arguments": {
"groupId": "example"
}
}
}