> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vijil.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Red Team Overview

> Create and inspect Red Team Engagements from MCP or REST API.

Red Team attacks a registered [Agent](https://docs.vijil.ai/owner-guide/register-agents/what-is-an-agent.md) to find weaknesses a fixed [Harness](https://docs.vijil.ai/concepts/evaluation-components/harness.md) would miss. It creates an **Engagement** that runs in waves: each wave generates attack seeds from a risk taxonomy, pursues them over multiple turns, judges the transcripts, and reflects on what worked before planning the next wave.

For the mechanics, see [Engagements](https://docs.vijil.ai/concepts/red-team/engagements.md). This page covers reaching Red Team from outside the Console.

## Interfaces

| Interface | How To Reach It |
| - | - |
| **Console** | The **Adaptive** tab in **Create Evaluation**. See [Run a Red Team Campaign](https://docs.vijil.ai/owner-guide/red-team/running-campaigns.md). |
| **MCP** | The `redteam_*` tools, 16 of them. See the [MCP tool catalog](https://docs.vijil.ai/developer-guide/agentic/tools.md#red-team-engagements). |
| **REST API** | The Engagements endpoints under `/v1/redteam/engagements`. |

## Create an Engagement

Only the Agent ID is required. The service resolves the target endpoint and Agent card from the Agent registry, so you never pass an endpoint directly.

> [tab] MCP
>
> Red team the customer support agent over 3 waves with 5 seeds each
>
> Red team the customer support agent over 3 waves with 5 seeds each

> [tab] REST API
>
> ```bash theme={null}
> curl -X POST "$VIJIL_API_URL/v1/redteam/engagements" \
>   -H "Authorization: Bearer $VIJIL_TOKEN" \
>   -H "Content-Type: application/json" \
>   -d '{
>     "agent_id": "'"$AGENT_ID"'",
>     "team_id": "'"$TEAM_ID"'",
>     "policy_ids": ["<policy_id>"],
>     "redteam": {"max_waves": 3, "max_seeds_per_wave": 5}
>   }'
> ```

## Follow a Run

An Engagement reports `status`, `phase`, `current_wave`, `attackers_completed`, and `attackers_errored` while it runs.

> [tab] MCP
>
> What wave is the red team engagement on, and has anything succeeded yet?
>
> What wave is the red team engagement on, and has anything succeeded yet?

> [tab] REST API
>
> ```bash theme={null}
> curl "$VIJIL_API_URL/v1/redteam/engagements/$ENGAGEMENT_ID?team_id=$TEAM_ID" \
>   -H "Authorization: Bearer $VIJIL_TOKEN"
> ```

A completed Engagement can report `degraded` with a `degradation_reason` when the target failed mid-run, which means the report is partial rather than a clean pass.

## Read the Results

Findings are addressable per wave and per seed, so you can pull one transcript rather than the whole run.

| What You Want | Endpoint |
| - | - |
| Attack seeds | `GET /v1/redteam/engagements/{id}/seeds` |
| Attacker runs | `GET /v1/redteam/engagements/{id}/attacks` |
| One attacker run | `GET /v1/redteam/engagements/{id}/attacks/{wave_id}/{seed_id}` |
| Judgments | `GET /v1/redteam/engagements/{id}/judgments` |
| One judgment | `GET /v1/redteam/engagements/{id}/judgments/{wave_id}/{seed_id}` |
| Reflections | `GET /v1/redteam/engagements/{id}/reflections[/{wave_id}]` |
| Final report | `GET /v1/redteam/engagements/{id}/report` |
| Report as Markdown or PDF | `GET /v1/redteam/engagements/{id}/report.md` or `report.pdf` |

Every endpoint takes `team_id` as a query parameter.

## Personas and Policies

Personas and Policies are the context an Engagement attacks with and judges against. An Engagement given neither still runs, but its judgments fall back on general safety and security expectations rather than your rules.

| Input | What It Contributes |
| - | - |
| [Personas](https://docs.vijil.ai/owner-guide/simulate-environment/personas.md) | Who is attacking. Personas shape attacker behavior. |
| [Policies](https://docs.vijil.ai/owner-guide/simulate-environment/policies.md) | The rules the Agent must follow, so a judge can identify a concrete policy violation. |

Create both from presets:

```bash theme={null}
vijil persona preset-list --preset-category adversarial
vijil persona from-preset <preset_id>

vijil policy preset-list
vijil policy from-preset <preset_id>
```

Alternatively, you can use MCP to list [Persona presets](https://docs.vijil.ai/developer-guide/agentic/tools.md#persona_preset_list), then [create a Persona from a preset](https://docs.vijil.ai/developer-guide/agentic/tools.md#persona_from_preset). List [Policy presets](https://docs.vijil.ai/developer-guide/agentic/tools.md#policy_preset_list), then [create a Policy from a preset](https://docs.vijil.ai/developer-guide/agentic/tools.md#policy_from_preset).

## Next Steps

> [card] [How Engagements Work](https://docs.vijil.ai/concepts/red-team/engagements.md)
>
> Waves, seeds, judgments, and reflections

> [card] [MCP Tools](https://docs.vijil.ai/developer-guide/agentic/tools.md#red-team-engagements)
>
> The Red Team tool catalog for Agents

> [card] [Run From the Console](https://docs.vijil.ai/owner-guide/red-team/running-campaigns.md)
>
> Launch Red Team from the UI


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.