# Inventory and uploads

Find the files attached to an item, start an upload, or replace a file while preserving its history.

## Resume an interrupted upload

1. Call `get_asset` with the ID from the upload reservation.
2. Read `uploaded_bytes`.
3. Send the remaining bytes through REST using that value as `Upload-Offset`.

See [Processing and media access](/docs/mcp-media) for OCR, previews, playback, and trash.

## Browse storage and attachments

### `list_storage_locations`

Lists configured storage names.

**Access** Read · **Arguments** None

### `list_item_assets`

Lists an item’s attachments.

**Access** Read · **Arguments** `item_id`, optional `cursor`, `limit`

### `get_asset`

Returns metadata, processing status, and committed upload offset.

**Access** Read · **Arguments** `id`

### `list_asset_revisions`

Lists file revisions and any staged replacement.

**Access** Read · **Arguments** `id`, optional `cursor`, `limit`

## Upload or replace a file

### `create_asset_upload`

Reserves an upload. `file` contains `filename`, `size_bytes`, and optional `storage_location`.

**Access** Write · **Arguments** `item_id`, `file`, optional `idempotency_key`

### `create_asset_replacement`

Stages a replacement in the same file series. The old revision stays current until the replacement clears scanning.

**Access** Write · **Arguments** `id`, `file`, `idempotency_key`

An MCP reservation returns metadata. Send file bytes with authenticated HTTP `PATCH /v1/assets/{id}` and the current `Upload-Offset`. If an upload is interrupted, read `uploaded_bytes` before sending the next chunk.

Completed uploads enter quarantine. Download and playback become available through the authorized routes once the corresponding workers clear and process the file.

[Back to the MCP overview](/docs/mcp-tools).
