xray_add_evidence_to_step
Attach a file as evidence to a specific step in a test run by providing base64-encoded content, filename, and MIME type. Use it to document screenshots, logs, or PDFs during test execution.
Instructions
Attach evidence to a specific step within a test run. Pass base64-encoded file content with filename and mimeType. Use the Read tool or user attachment to obtain base64 content before calling this tool.
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": {
"testRunId": "<testRunId>",
"stepId": "<stepId>",
"content": "<content>",
"filename": "<filename>",
"mimeType": "<mimeType>"
},
"name": "xray_add_evidence_to_step"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Response format: toon (compact, default), json (full), summary (one-line) | toon |
| stepId | Yes | Test run step internal ID | |
| content | Yes | Base64-encoded file content (screenshot, PDF, log). Max ~7.5MB decoded. | |
| filename | Yes | Filename with extension, e.g. screenshot.png | |
| mimeType | Yes | MIME type, e.g. image/png, application/pdf, text/plain | |
| testRunId | Yes | Test run internal ID |