upload_test_case_attachment
Upload a file attachment to a test case by providing the file content as a base64-encoded string.
Instructions
Upload a file attachment to a test case. Provide file content as a base64-encoded string.
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": {
"testCaseId": "<testCaseId>",
"filename": "<filename>",
"contentType": "<contentType>",
"contentBase64": "<contentBase64>"
},
"name": "upload_test_case_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| testCaseId | Yes | Test case ID. Must be a number (integer), not a string. | |
| filename | Yes | File name including extension, e.g. screenshot.png. | |
| contentType | Yes | MIME type, e.g. image/png or application/pdf. | |
| contentBase64 | Yes | File content encoded as a base64 string. |