cortex_set_role
Set an agent's role to control which tools it can call. Roles include researcher, builder, reviewer, or orchestrator.
Instructions
Set the role for an agent. Roles control which tools the agent can call.
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_name": "<agent_name>",
"role": "<role>"
},
"name": "cortex_set_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_name | Yes | Agent name (e.g., claude, gemini, opencode) | |
| role | Yes | Role: researcher, builder, reviewer, or orchestrator |