get_redteam_task_details
Retrieve detailed information about a red teaming task, including the system prompt of the target model, for AI safety analysis and prompt auditing.
Instructions
Retrieve details of a redteam task.
Args: test_name: The name of the redteam test.
Returns: A dictionary containing the details of the redteam task including the system prompt of the target model used.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| test_name | Yes |
Implementation Reference
- src/mcp_server.py:691-707 (handler)The handler function for the 'get_redteam_task_details' MCP tool. Decorated with @mcp.tool() for automatic registration. Retrieves redteam task details via redteam_client.get_task(test_name) and returns the result as a dictionary.@mcp.tool() def get_redteam_task_details(test_name: str) -> Dict[str, Any]: """ Retrieve details of a redteam task. Args: test_name: The name of the redteam test. Returns: A dictionary containing the details of the redteam task including the system prompt of the target model used. """ # Retrieve redteam task details redteam_task = redteam_client.get_task(test_name=test_name) # Print as a dictionary return redteam_task.to_dict()