set_agent_role
Assign an agent a worker, coordinator, or admin role to control task scope and account access. Requires an admin key; sandbox agents graduate via the claim flow.
Instructions
Set an agent's role (admin key required): worker (own-task scope), coordinator (sees + can comment on all account tasks), or admin (full account management). Sandbox agents graduate via the claim flow and cannot be assigned a role.
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 | Role preset to apply | |
| agent_id | Yes | Agent ID to change |