Client area

MCP tool · File manager

manage_files

Write, create, copy, move or re-permission a file or directory in a hosting account.

manage_files
W Write
Scope write:files

Description

Write, create, copy, move or re-permission a file or directory in a hosting account. action=write creates or overwrites a text file (needs path and content, max 256 KB); mkdir makes a directory (needs path); copy and move need source and destination; permissions sets an octal mode like 0644 (needs path and mode). All actions require the write:files scope and confine every path to the account home. To DELETE a path use delete_files (it is irreversible and confirmed); to browse use list_files; to zip/unzip use archive_files.

Input

Name Type Description
input required string A domain, email address, website URL, numeric service id, or hosting-account username the customer actually owns. Resolved to the owning account automatically; the resolved target is echoed back in the response.
action required enum write a text file, mkdir a directory, copy or move an entry, or set permissions. All require write:files. One of write, mkdir, copy, move, permissions.
path string The target path, relative to the account home (e.g. /domains/example.com/public_html/.htaccess).
content string The full new text content for action=write (max 256 KB). It is treated as data and never echoed back or logged.
source string The path to copy or move from, relative to the account home. Required for copy and move.
destination string The directory to copy or move into, relative to the account home. Required for copy and move.
mode string The octal permission mode for action=permissions, e.g. 0644 or 755.
Esc
navigate open Esc close