upload_attachment
Upload a file to TestIT and receive its attachment ID and metadata, so you can pass the ID in attachmentIds of create_work_item to attach the file to a work item.
Instructions
Upload a file to TestIT and get its attachment id/metadata. Pass the id in attachmentIds of create_work_item to attach it.
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": {
"filename": "<filename>",
"contentType": "<contentType>",
"contentBase64": "<contentBase64>"
},
"name": "upload_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | File name including extension. | |
| contentType | Yes | MIME type, e.g. image/png. | |
| contentBase64 | Yes | File content encoded as base64. |