Run an AI team
ai_teamRuns several AI models as a role-based team in review, discussion, or pipeline mode to check code, improve drafts, plan work, and cross-check decisions.
Instructions
Make several AI models work together as a team on a task, for work or code. Modes: 'review' (first member writes or revises, the others review, repeated for several rounds until approved; pass your own draft to have the team improve YOUR work), 'discussion' (all answer, then read each other's answers and refine), 'pipeline' (each member does its role in order, e.g. researcher -> writer -> editor). Roles: author, coder, reviewer, critic, security, tester, researcher, writer, editor, planner, devils_advocate, summariser, expert, or any custom role text. Use for code reviews, document drafting, planning, decisions and debugging. Afterwards, check the result yourself and tell the user which AI did what.
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": {
"task": "<task>",
"members": "<members>"
},
"name": "ai_team"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | How the team works together. | review |
| task | Yes | What the team should produce or decide. Be specific about the goal and audience. | |
| draft | No | Review mode: an existing draft (for example your own) for the team to improve, instead of writing from scratch. | |
| files | No | Paths of text/code files to share with the team (only inside ALLOWED_FILE_DIRS). | |
| rounds | No | Review or discussion rounds (1 to 3). Ignored for pipeline. | |
| context | No | Background the whole team needs: requirements, constraints, earlier decisions. | |
| members | Yes | 2 to 6 team members. In review mode the FIRST member is the author/reviser. | |
| team_id | No | Optional name to save this session under (e.g. 'login-refactor'). Reuse it to continue from the last result. | |
| max_output_tokens | No | Reply limit per contribution. |