> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wappigate.com/llms.txt
> Use this file to discover all available pages before exploring further.

# File Tools

> Upload a file and get a public link, or list your uploads.

## What is this?

These tools put a file in your storage and give you back its public `https` address, so you can use it where a step or post needs a hosted file — for example as the picture of a buttons message in an automation, or the media of a Content Studio post. They store files in your own uploads folder, the same as every other upload.

These tools belong to the [Workspace MCP](https://docs.wappigate.com/mcp/workspace/overview.md). Each tool below shows its **Mode** (**Read** runs immediately; **Write** asks your MCP client to confirm first) and the **Permission needed** for it to appear for your key — "None" means every connected key sees it.

## What can I do here?

* Upload a file from a public web address, or from the file's own bytes
* Upload a file that is on your computer, without sending its bytes through the tool
* Find a file you already uploaded, so you don't upload it twice

## Tools

### `upload_file`

Upload a file to storage and get back its public https address (`url`), for a step or message that needs a hosted file, for example the picture of a buttons message (then pass that url as `header` to update\_automation\_step). Give EITHER `url` (a public http(s) address the server downloads; no internal addresses) OR `contentBase64` (the file itself, at most 8 MB) with `fileName`, whose extension decides the type. Accepted: images, video, audio, PDF, office documents and text, at most 50 MB. It is stored like every other upload, in the uploading user's folder.

**Mode:** Write · **Permission needed:** `filemanager:create`

### `create_upload_url`

Get a one-time address to upload a file that is on YOUR computer (for example an image you generated), without sending its bytes through this tool. Step 1: call this with the file's name (with its extension) and, if you know it, its size in bytes. Step 2: run the returned `curl` command in your terminal, `curl -sS -T <path to the file> '<uploadUrl>'`; the answer is JSON whose `url` is the stored file's public https address. Step 3: pass that `url` as `mediaUrl` to create\_content\_post or as `header` to update\_automation\_step. The address works once, for the file name given here, for 10 minutes. Accepted: images, video, audio, PDF, office documents and text, at most 50 MB. It is stored in your own uploads folder like every other upload. For a file that already has a public address use upload\_file instead.

**Mode:** Write · **Permission needed:** `filemanager:create`

### `list_uploaded_files`

List the files YOU uploaded to storage (File Manager, upload\_file, create\_upload\_url), newest first, with each file's name and public https address (`url`). Use it to find a file again (for example before create\_content\_post or update\_automation\_step) instead of uploading it twice. Filter by part of the name (`search`) or by `type`. Only your own uploads are listed, not other users' files or customer conversation files.

**Mode:** Read · **Permission needed:** `filemanager:view`

## Troubleshooting / Technical Notes

* **`create_upload_url` says the address expired.** It works once and for 10 minutes. Call it again for a new one.
* **The upload is refused.** The file is over 50 MB (8 MB for `upload_file` with base64), or its type isn't accepted. Use a public address for large files.
* **I can't find a file I uploaded.** `list_uploaded_files` shows only your own uploads; use `search` with part of the name.

## Related docs

* [Workspace MCP tool catalog](https://docs.wappigate.com/mcp/workspace/tools/overview.md)
* [File Manager](https://docs.wappigate.com/workspace/file-manager.md)
* [Content Studio tools](https://docs.wappigate.com/mcp/workspace/tools/content-studio.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.