complete_artifact_multipart
Finish a multipart artifact upload by joining its parts, content-addressing the result with SHA-256, and registering it in the workspace; refusal occurs if storage or media quotas are exceeded.
Instructions
Finish a multipart upload: join the parts, content-address the result by SHA-256 and register it as an artifact in your workspace. Returns the artifact (id, sha256, size_bytes, mime_type, kind, uploaded_by, created_at) and appends an ArtifactUpserted event; read it back with get_artifact_metadata or get_artifact. Refused, with nothing stored, when the workspace is over its stored-bytes allowance or the result would exceed its media quota. Needs the S3 artifact backend and artifact:upload; the parts come from upload_artifact_multipart_part.
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": {
"upload_id": "<upload_id>",
"object_key": "<object_key>",
"parts": "<parts>",
"kind": "<kind>"
},
"name": "complete_artifact_multipart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Artifact category recorded on the artifact: screenshot, recording, transcript, code_dump or attachment. | |
| parts | Yes | Every uploaded part as {part_number, etag}, using the etag that upload_artifact_multipart_part returned for it. At least one part is required, part numbers must be unique, and no etag may be empty. | |
| mime_type | No | Optional MIME type to record on the artifact, for example image/png. Stored as given. | |
| upload_id | Yes | The upload_id returned by begin_artifact_multipart. | |
| object_key | Yes | The object_key returned by begin_artifact_multipart, of the form multipart/<your-workspace-uuid>/<uuid>. A key that belongs to another workspace is refused. |