set_agent_role
Assign roles to agents: admin, member, or group_admin (requires managed group ID). Only admin users can call this function.
Instructions
设置 Agent 角色(admin/member/group_admin)。group_admin 需指定 managed_group_id,仅能管理该 parallel_group 内成员的任务。仅 admin 可调用。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agent_id": "<agent_id>",
"role": "<role>"
},
"name": "set_agent_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | 新角色 | |
| agent_id | Yes | 目标 Agent ID | |
| managed_group_id | No | 管理组 ID(仅 group_admin 角色需要) |