setTaskMedia
Sets or clears the media (image, video, or file) shown on a task. Pass an attachmentId from uploadMedia (target 'task') to set it — any existing media on the task is replaced — or attachmentId=null to remove the current media. On a draft or scheduled beta project the change is applied immediately. On a running or paused beta project the change is STAGED: testers do not see it until commitTaskChanges publishes all staged changes (revertTaskChanges discards them; getBetaTasks with version 'unpublished' shows the staged state). While staging, these tools accept BOTH the live id and the staged id of a task or step, but always respond with the STAGED row — expect ids you did not pass in, with liveVersionId linking back to the live row. Content of finished or archived beta projects cannot be edited.
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": {
"productId": "<productId>",
"taskId": "<taskId>",
"attachmentId": "<attachmentId>"
},
"name": "setTaskMedia"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | ID of the task, from getBetaTasks. Never invent ids. | |
| productId | Yes | ID of the beta project to query. Get valid IDs from the listProducts tool. | |
| attachmentId | Yes | Attachment handle from uploadMedia (target 'task'), or null to remove the task's current media. |