Skip to Content
ReferenceToolsfs_upload_commit

fs_upload_commit

Verify size and whole-file SHA-256, then create the destination without overwriting. A lost reply is reconciled through upload status; success includes a file receipt.

Arguments

Over MCP every tool also takes machine: the machine’s name or id, optional when only one machine is online.

NameTypeRequiredMeaning
transferstringyesThe id bound by fs_upload_begin, owned by this same authenticated caller.

Result

NameTypeRequiredMeaning
chunk_max_bytesintegeryesMaximum decoded bytes in a chunk.
expires_atintegeryesFixed expiry as Unix seconds.
offsetintegeryesDurable confirmed byte offset. Only continue from this value.
pathstringyesBound canonical absolute destination.
receiptobjectnoPresent only after verified publication.
sha256stringyesExpected whole-file SHA-256; a committed receipt confirms verification.
sizeintegeryesExpected whole-file decoded bytes.
state"uploading" | "committed" | "aborted" | "expired"yesCurrent durable state.
transferstringyesClient-generated upload id.

Examples

{ "name": "fs_upload_commit", "arguments": { "machine": "<machine>", "transfer": "<transfer>" } }

Limits

The call times out after 120 s (timed_out). Available since version 0.1.18. A refused or failed call returns one of the error codes.