Create Accountor Login
Docs

Files for AI Agents and the API

Part of the MountDev Ops Files documentation. Updated November 22, 2026

MountDev Ops Files documentation | Updated November 22, 2026

An AI agent you connect, or a custom integration that uses the API, can organize your files: list the app folders, make and rename folders, move files, use a file in another place, see where a file is used, and ask for a file to be made public or deleted. It uses the same actions as the screens, with the same checks, as the person who made the connection, and never more than that person could do. Every change is marked AI agent in your Activity Log, with the connection's name.

Two things never change:

  • Bytes go in, never out. No tool reads, opens, downloads, or returns a file. An agent can send a file in, and see names, sizes, kinds, and where a file is used, and nothing more.
  • Public and Delete always wait for you. An owner or admin must say yes in the workspace first, and sees exactly what will change.

The Tools and Their Permissions

Each tool is one permission, shown in Settings, Connections when you choose what a connection may do. A tool a connection does not hold is not in its list.

ToolPermissionActionLevelWhat it does
files_app_folders_listfiles.app_folders_listfiles.app_folders.listReadThe app folders you may see, with their file counts, public rule, and folder number
files_browsefiles.browsefiles.browseReadOpen a folder: its folders and files, each with Private or Public
files_searchfiles.searchfiles.searchReadSearch folders and files by name, each file with Private or Public and its app
files_used_infiles.used_infiles.used_inReadEvery place a file is used that you may see, and how many more you cannot
files_uploadfiles.uploadfiles.uploadWriteSend one file into a folder you may change; it starts Private. Bytes go in and never come back
files_folder_createfiles.folder_createfiles.folder.createWriteA folder inside an app folder or one of your own folders
files_folder_renamefiles.folder_renamefiles.folder.renameWriteRename a folder; never an app folder
files_movefiles.movefiles.moveWriteMove one file or one folder to a folder you may change
files_linkfiles.linkfiles.linkWriteUse a file in a website or a record, with no copy
files_unlinkfiles.unlinkfiles.unlinkWriteStop using a file in one place; the file stays
files_visibility_setfiles.visibility_setfiles.visibility.setWriteMake a file Private now, or ask to make it Public (waits)
files_deletefiles.deletefiles.deleteDeleteAsk to delete files (waits); they go to Trash

Only an owner or admin can give a connection a Write or Delete permission. The older tools to rename a file and attach a file to a record (core_files_rename, core_files_places) keep working as before.

What Does Not Wait

Making a file Private, linking, unlinking, moving, making folders, and renaming do not wait. These only make less public, or only organize. Two details:

  • Moving a Public file into a folder where files can never be public makes it Private, and says so in the answer. Its public address stops for good.
  • A folder is not moved into such a place while a file in it is Public. The answer says how many, and you make them Private first.

What Always Waits

Make a File Public

files_visibility_set with public answers waiting_for_approval with an approval_id and a review_url. Give the person the link. Nothing changes until an owner or admin approves.

The approval shows the file's name, kind, and size, every place it is used, and "anyone with the address can load it, with no sign in". Asking again for the same file while it waits gives the same approval (already_waiting) and files no second one. Declining changes nothing.

Public is refused at once, with a sentence, where a file can never be public: files kept for Meetings, Contracts, Invoices, Proposals, Helpdesk, Calls, Channels, Chat, and Projects, files in a private folder or in Trash, and anything new on a closed account. Public also needs Files on Your Websites turned on in Files, Settings.

Delete Files

files_delete takes up to 25 file numbers and always answers waiting_for_approval. The approval shows each file's name, how many there are, the places each is used, and that they go to Trash, where they can be restored. Nothing is deleted for good.

Publish a Website with a Private Picture

websites_publish for a website whose ready pages use a Private picture answers waiting_for_approval and does not publish. The approval lists each picture and the pages that use it. Approving makes exactly those pictures Public and publishes. Declining changes nothing. To publish without them, with the pictures left out and nothing made public, call websites_publish_without_pictures, which does not wait. A picture that can never be public is refused at once, and the answer names websites_publish_without_pictures as the way out.

Upload a File

files_upload (permission files.upload, action files.upload, Write) sends one file into a folder you may change. The file is checked by its first bytes, by its kind (a picture, PDF, Office document, text file, or zip file, decided by the file's name), and by a size of up to 700 KB for each call. Programs, scripts, web pages, and SVG drawings are refused. It is encrypted in your own storage as it is stored, always starts Private, and the answer holds its name, number, size, and folder, never its bytes. A file larger than 700 KB is uploaded by a person in Files. To make an uploaded file Public, use files_visibility_set, which waits.

Where to Find Things

  • To check what a waiting call became, an agent calls mountdev_check_approval with the approval_id.
  • Owners and admins see every waiting call, with its preview, in Settings, Connections, and are told on the bell.
  • The generated list of every tool and permission is in the permission list.

Ask Us Anything

We’d love to hear from you!