MCP Tools — Files & Docs
Document filesystem and resource file operations.
4 tools in this registry. Every tool is callable over the MCP endpoint (
/api/mcp); the badge on each shows which auth modes may invoke it. See Auth models and the MCP overview.
rivr.files.delete
Session
MCP Token
Delete a file owned by the actor (soft delete via deleteResource).
Parameters
| Param | Type | Required | Description |
|---|---|---|---|
fileId | string | yes |
rivr.files.get
Session
MCP Token
Fetch a single file record (resource row + storage metadata).
Parameters
| Param | Type | Required | Description |
|---|---|---|---|
fileId | string | yes |
rivr.files.list
Session
MCP Token
List files owned by the actor.
Parameters
| Param | Type | Required | Description |
|---|---|---|---|
limit | number | — |
rivr.files.upload_from_url
Session
MCP Token
Fetch a remote URL and store it in the user's file space. Returns the stored file's resourceId, url, and storage metadata. Bucket options: uploads (default), avatars, exports.
Parameters
| Param | Type | Required | Description |
|---|---|---|---|
sourceUrl | string | yes | HTTPS URL to fetch. |
bucket | enum(uploads \ | avatars \ | exports) |
description | string | — | |
filename | string | — | Override filename; inferred from URL path otherwise. |
mimeType | string | — | Override MIME type; response Content-Type used otherwise (default: application/octet-stream). |