Add an attachment
qtest_add_attachmentAttach a base64-encoded file to a qTest artifact such as a test case, requirement, defect, or test log by specifying the project ID, artifact type, and artifact ID.
Instructions
Attach a file (provided as base64 content) to a qTest artifact such as a test case, requirement, defect, or test log.
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": {
"projectId": "<projectId>",
"objectType": "<objectType>",
"objectId": "<objectId>",
"fileName": "<fileName>",
"base64Content": "<base64Content>"
},
"name": "qtest_add_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileName | Yes | File name including extension. | |
| objectId | Yes | Artifact ID to attach to. | |
| projectId | Yes | Numeric project ID. | |
| objectType | Yes | Artifact type to attach to. | |
| contentType | No | MIME type (default application/octet-stream). | |
| base64Content | Yes | File content, base64 encoded. |