Shop files (Service area)

ps_server_file

Write · preview + approveService · switch, 3 hTellMyShop Pro onlySaves: Service switch (3 h)Visible right after install

Reads any file of the shop and, with the Service switch on for 3 hours, changes it, with a backup before every change.

TellMyShop Free: No. This tool is only in TellMyShop Pro. TellMyShop Free has only ready reports that read your store.

Ask Claude

„Add a line to robots.txt so search engines don't crawl the /module/ pages.”

Example preview

File root:robots.txt, 2,104 -> 2,125 bytes. Backup before saving.
+ Disallow: /module/

Technical details

SERVICE AREA. Any shop file: action=list (folder), read (path, from_line), edit (search/replace or content; also a new file, for example your own module or an override), delete (with a backup, restorable). Paths are relative to the shop folder. Protected and never accessible: files with database passwords and keys (app/config/parameters.php, .env...), config/settings.inc.php, var/logs, upload, download, payment modules and the connector's own folders. PHP files are syntax-checked before saving and every write is backed up. Prefer the Theme and Modules tools for theme and module files, they have extra checks. Restore: ps_restore_file_backup.

Parameters

NameTypeRequiredDescription
actionenum: list | read | edit | deleteyeslist | read | edit | delete.
pathstringwhen: action=read, edit or deletePath relative to the shop folder (list: folder, empty = root). Max 400 characters.
from_lineintegernoread: start line (400 lines per call).
searchstringnoedit: exact fragment to replace (must appear exactly once). Max 100,000 characters.
replacestringnoedit: the new fragment. Max 100,000 characters.
contentstringnoedit: whole new content (instead of search/replace). Max 500,000 characters.
confirmbooleannofalse (default) returns a preview and saves nothing. true executes, only after the user approved the preview, together with change_token.
change_tokenstringwhen: confirm=trueToken from the preview. Required with confirm=true. Valid 30 minutes, single use, bound to the previewed arguments and data state.

Limits

list and read work without a switch; edit and delete need the Service switch, which the owner turns on for 3 hours. read: 400 lines per call, files up to 1 MB. delete: single files up to 5 MB. edit: text files only. File writes count toward the file write limit (default 20 per hour), shared by all file tools (adjustable in the Settings: security, alerts, limits card).

What you see before anything is saved

Claude first calls the tool without confirming it. The module returns a preview (current and new values) and a single-use token valid for 30 minutes. Claude shows you the preview and saves the change only after your yes.

Related tools

Use cases with this tool

Last updated: 2026-10-11