run_attack
Run a predefined attack strategy on an engagement's target to assess AI security vulnerabilities and optionally score outcomes.
Instructions
Run a named PyRIT attack strategy against the engagement's configured target.
Starts a new conversation. Use `continue_attack` to keep talking within the
same conversation. Optionally scores the final response with `scorer_names`.
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": {
"engagement_id": "<engagement_id>",
"attack_name": "<attack_name>",
"objective": "<objective>"
},
"name": "run_attack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objective | Yes | ||
| attack_name | Yes | ||
| scorer_names | No | ||
| attack_params | No | ||
| engagement_id | Yes | ||
| memory_labels | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | ||
| success | Yes |