TYPO3 fileadmin from chat: check usage, rename, reorganise, import

TYPO3 fileadmin from chat: check usage, rename, reorganise, import

Every TYPO3 fileadmin collects files called IMG_4711.JPG or tent_view_final_final.jpg, and nobody knows which ones are still in use. With TYPO3 MCP your AI assistant checks where each file is used and gives files clear names. It moves the unused ones to a review folder and imports a file from a URL. We ran all four on our demo install, then put every step back. MCP, the Model Context Protocol, lets an assistant such as Claude work inside TYPO3 through tools that AI Foundation provides for free. One rule comes first: file changes act at once, with no dry run and no undo.

One minute, with captionsAll videos

For
TYPO3 editors and administrators who want a tidy fileadmin without breaking a page
By hand
Opening each file's references, searching texts for links, renaming in the file list
By prompt
Two requests on our demo install
Check and put back
File changes act at once: every step was put back by its opposite operation

Start with a question, not a change: Which images and PDFs in our Mustermann Outdoor folders and in user_upload have messy names, and which of them are not used on any page? The assistant listed the folders and found five messy names. Then it checked usage in two places:

  • File fields. An image on a page is a file reference. Two of the five files had one: IMG_4711.JPG on the E-Bikes hero, in English and German, and DSC00123__2_.jpg on the Ridge 2 hero.
  • Links in text. A PDF is often linked from a text, not attached. Garantiebedingungen_v3_FINAL.pdf had no file reference, but the Manuals and downloads text links it.

So only two files were really unused: tent_view_final_final.jpg and Wasserhahn_alt.jpg. A check of file fields alone would have called the warranty PDF unused. Ask for both checks, every time.

Try this promptWhich images and PDFs in our Mustermann Outdoor folders and in user_upload have messy names, and which of them are not used on any page?
Reads only

The second request: Rename IMG_4711.JPG and DSC00123__2_.jpg to names that say what they show. They must stay on their pages. The assistant used file_rename twice, with e-bikes-hero.jpg and ridge-2-tent-hero.jpg as new names. Then it checked:

  1. The page still shows the image. TYPO3 keeps the file's record and its ID when a file is renamed. The reference on the E-Bikes page still points at it. The page answered as before.
  2. The file's own URL changed. The new URL answered, the old one answered 404. A link to the old file name in a newsletter or on another site breaks.

The third request moved the two unused images into a new folder, to-review-unused, with directory_create and file_move. A review folder is the safer choice than a delete: someone can still say we need that one before anything is gone.

Try this promptRename IMG_4711.JPG and DSC00123__2_.jpg to names that say what they show. They must stay on their pages.
Changes two file names at once, no undo

The fourth request: Import our Ridge 2 press photo from this URL into the products folder as ridge-2-press-photo.jpg. The assistant used file_upload_from_url. TYPO3 downloaded the file on the server and answered with three useful facts:

  • The file's ID in TYPO3, ready to place on a page.
  • A next step: the file is stored, but on no page yet.
  • A checksum. Ours matched ridge-2-alpine-lake.jpg, a file already in the folder. The import was a duplicate, and nothing warned about it. Compare the checksum before you place a new file.
Blog series · TYPO3 MCP

MCP in Practice for TYPO3

Two jobs per episode, each with a one-minute video. New episodes appear as soon as they are ready.

Episode 6 of 29 is live

This episodeEpisode 6

Coming next

  1. MCP in Practice for TYPO3Episode7
    Episode 7
    • Schedule pages to go live and expire, plus short-lived redirects
    • A TYPO3 editor's working day with MCP
  2. MCP in Practice for TYPO3Episode8
    Episode 8
    • Every image without alt text: found, described by your assistant, saved after review
    • Topic to be announced
  3. MCP in Practice for TYPO3Episode9
    Episode 9
    • Topic to be announced
    • What do your chatbot and AI search know? Audit, refresh, fix training

Sovereign TYPO3 AI

AI Foundation for TYPO3T3AF

The base every extension runs on. Manage providers, prompts, permissions and costs in one place.

Install free

Files, file metadata, redirects, scheduler tasks and cache clears act at once. A file change is not part of a TYPO3 draft workspace, and records_undo does not reach it. So the way back is the opposite operation, and it is your job to note it before each step. We did that on our demo:

  • The renames went back to the old names.
  • The moves went back to user_upload.
  • The import went to the demo's recycler folder, as did the empty review folder.

Afterwards the old file URLs answered again and the E-Bikes page showed its image as before. We show you each check on our demo, so you see what to look at on yours.

What the assistant cannot do for you

  • It cannot undo a file change. The opposite operation is the way back; note it first.
  • It does not set redirects for renamed files. Old links to a file break.
  • It sees only the usage you ask for. Ask for file fields and links in text.
  • It cannot decide what to keep. An unused file can still be needed. That is your call.

The video for this episode asks for the usage check and the rename in Claude on our demo install, then shows the renamed file in the TYPO3 file list and the E-Bikes page with its image on the website. Shown in Claude; other MCP assistants work too.

This job uses AI Foundation's core tools, which are free and open source, no licence key, no registration. AI Assistant, AI Accessibility, AI Chatbot and AI Search add their own MCP tools for writing, translation, alt text, chatbots and search. Each needs its own licence. Together with AI Foundation they bring 100+ MCP tools.

What your assistant reads, it sends to its vendor, as with any chat. Keep that in mind before you let it read pages that are not public yet.

The other post of this episode copies a campaign page with all its subpages, and shows where the copy still needs you. Episode 7 sets pages to go live and expire on a date and follows an editor through a working day with MCP. Episode 3 changed one phone number in many places, and episode 5 introduced draft workspaces, which hold page changes but not file changes. If you are new to the series, start with TYPO3 MCP use cases: what you can hand to an AI assistant, on one map.

The series comes from T3Planet by NITSAN Technologies, a TYPO3 Association Gold Member with more than 15 years of TYPO3 work. Its episodes are written by Jürgen, our AI Consultant for TYPO3. Every episode runs its job on our demo install before it is published.

All episodes of MCP in Practice for TYPO3

What the assistant did
  1. file_listThe folders listed, messy names found
  2. record_searchUsage checked in file fields and in links in text
  3. file_renameTwo images renamed; their pages keep them

What stays with you: deciding what to keep, noting the way back before each step, and redirects for old file links.

Limits to know
  • File changes act at once: no draft workspace, no dry run and no records_undo; the way back is the opposite operation.
  • A renamed file keeps its place on the page, but its old URL answers 404.
  • What your assistant reads through MCP goes to the vendor of that assistant, as with any chat.
Start free with AI FoundationOpen source, no licence key, one Composer command.
Get AI Foundation

Ask your assistant to check two things for each file: file references in content and links to the file in text. A file with neither is a candidate. Move candidates to a review folder before anyone deletes them.

Not the pages. TYPO3 keeps the file's ID, so images on pages stay. The file's own URL changes, so direct links to the old name break.

Not with an undo tool. File changes act at once, outside draft workspaces. Note the opposite operation before each step and run it if needed.

No. It uses the core tools of AI Foundation, which is free and open source. The assistant you connect comes with its own plan from its vendor.

Sovereign TYPO3 AI: AI Foundation is free and open source, six AI extensions build on it.

Explore TYPO3 AI