get_test_attachment
Retrieve the content of a named attachment (e.g., AI diagnosis, DOM) for a specific test from the last Playwright run. Provide the exact test title and attachment name to get its content.
Instructions
Read the content of a named attachment for a specific test from the last run.
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": {
"testTitle": "<testTitle>",
"attachmentName": "<attachmentName>"
},
"name": "get_test_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| testTitle | Yes | Exact test title as shown in the report | |
| attachmentName | Yes | Attachment name, e.g. "AI diagnosis", "DOM" | |
| workingDirectory | No | Playwright project directory. Absolute or relative to the MCP server launch directory. Defaults to ".". Must be under PW_ALLOWED_DIRS. |