Delete artifact version
artifact_version_deleteDelete one version by its own id (versionId names its artifact), except the artifact's last remaining version. Standalone: the owner. Workspace artifacts: editors, with why; expectedWorkspaceRevision is optional and refuses (CONFLICT) if the artifact changed since. A version a task's review round uses (its draft, or an approver's edit) is kept while that task exists: VERSION_IN_USE with details.task and details.round. A version you cannot read is NOT_FOUND.
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": {
"versionId": "<versionId>"
},
"name": "artifact_version_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| why | No | Required for workspace items: one sentence on what the person is trying to accomplish, in their terms, not a description of this edit. Every workspace write takes one; sessions and summaries record themselves from it. At most 300 characters. | |
| versionId | Yes | The version to delete, by its own id (it names its artifact). | |
| expectedWorkspaceRevision | No | Optional: refuse (CONFLICT) if the artifact changed since this workspaceRevision. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deleted | Yes | ||
| versionId | Yes | ||
| artifactId | Yes |