Let AI Edit and Organize Files
In a MaiGPT conversation with a workspace attached, ask AI to edit file contents, rename files in batches, move files, or delete them. AI lists the changes first and waits for your confirmation before
AI can read files and directly edit, rename, move, or delete files in a workspace. For every change, AI first lists what will change and waits for your confirmation before proceeding. Writing a file creates a new version, and deleted files can be restored within 30 days.
Use Case
The day before a product announcement, the warranty policy changes from one year to two years. In a conversation with the product workspace attached, a marketing specialist says, “Change the warranty in the third question of FAQ.md to two years for the main unit and three years for the motor.” AI displays the content before and after the edit and asks whether to write it back. After she confirms, AI updates FAQ.md directly. She then asks AI to rename three interview notes to “2026Q3_original filename” and move them to the “Interview Materials” folder. AI first lists the proposed changes in a table and completes them together after confirmation. Version history records that she confirmed each step in the conversation.
Edit File Contents
1. Describe What to Change
In a conversation with a workspace attached, describe the file and the content you want to change. For example:
“Change the warranty in the third question of FAQ.md to: two years for the main unit and three years for the motor.”
2. Confirm the Change
AI reads the file first, shows the content before and after the edit, and asks whether to write the change. Check the content, then reply to confirm or select the confirmation option AI provides. Only then will AI write the change to the file.

3. View the New Version
After the write completes, the file has a new version, with its name and location unchanged. The version list shows Agent, the person who confirmed the change, and the source conversation. See Version History and Restore.
Editable Formats
Text and data
MD, TXT, SQL, JSON, CSV
Edit contents directly
Office documents
XLSX, DOCX, PPTX
Requires Code Interpreter to be enabled in the conversation; complex charts or formatting may not be fully preserved, so check the result after editing
Rename and Move Files
You can ask AI to handle several files at once. For example, “Rename the three interview notes to ‘2026Q3_original filename’ and move them to the ‘Interview Materials’ folder.” AI first lists the Current Location, Current Filename, Filename After Operation, and Destination in a comparison table, then proceeds after confirmation.

Up to 20 files can be processed per operation.
Renaming cannot change the file extension.
If the destination folder does not exist, AI includes “Create Folder” in the comparison table and completes everything together after confirmation.
Renaming and moving the same file are performed together. If either step cannot be completed, neither step runs, and AI explains why.
Delete Files
Say “Delete the old Q2 quotation,” and AI lists the files to delete and their locations. Deletion always requires your confirmation.
Deleted files are retained for 30 days. During that period, you can restore them to their original locations from the workspace's Version History.
If you are not a workspace owner (organization owner, space owner, or workspace creator), AI submits a deletion request instead. An owner can select Approve Deletion or Reject under Pending Deletions in the workspace. Requests expire after 7 days.
Related Pages
Last updated
Was this helpful?