mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
2 lines
3.9 KiB
JavaScript
2 lines
3.9 KiB
JavaScript
import{_ as t,o as i,c as a,ag as o}from"./chunks/framework.CAXxHpAX.js";const m=JSON.parse('{"title":"Bot Files Management","description":"","frontmatter":{},"headers":[],"relativePath":"getting-started/files.md","filePath":"getting-started/files.md","lastUpdated":1772359263000}'),n={name:"getting-started/files.md"};function r(s,e,l,g,d,h){return i(),a("div",null,[...e[0]||(e[0]=[o('<h1 id="bot-files-management" tabindex="-1">Bot Files Management <a class="header-anchor" href="#bot-files-management" aria-label="Permalink to "Bot Files Management""></a></h1><p>Every Memoh Bot has its own dedicated filesystem inside its isolated container. You can manage this filesystem directly from the <strong>Files</strong> tab in the Bot Detail page.</p><hr><h2 id="operations" tabindex="-1">Operations <a class="header-anchor" href="#operations" aria-label="Permalink to "Operations""></a></h2><p>The <strong>FileManager</strong> component provides a familiar file-browsing experience with a toolbar, directory tree, and integrated editor.</p><h3 id="browsing-and-navigation" tabindex="-1">Browsing and Navigation <a class="header-anchor" href="#browsing-and-navigation" aria-label="Permalink to "Browsing and Navigation""></a></h3><ul><li><strong>Breadcrumb Navigation</strong>: Quickly move between parent directories.</li><li><strong>Refresh</strong>: Reload the file list to see the latest changes (e.g., files created by the bot).</li><li><strong>New Folder</strong>: Create a directory within the current path.</li></ul><h3 id="managing-files" tabindex="-1">Managing Files <a class="header-anchor" href="#managing-files" aria-label="Permalink to "Managing Files""></a></h3><ul><li><strong>Upload</strong>: Select files from your local computer to transfer them into the bot's container.</li><li><strong>Rename</strong>: Click on a file or folder and use the rename action to update its identifier.</li><li><strong>Delete</strong>: Remove files or folders (with recursive support for directories).</li><li><strong>Download</strong>: Retrieve a file from the bot's container back to your local machine.</li></ul><hr><h2 id="viewing-and-editing" tabindex="-1">Viewing and Editing <a class="header-anchor" href="#viewing-and-editing" aria-label="Permalink to "Viewing and Editing""></a></h2><p>The integrated <strong>FileViewer</strong> allows you to interact with the bot's files without leaving the web UI.</p><h3 id="text-files" tabindex="-1">Text Files <a class="header-anchor" href="#text-files" aria-label="Permalink to "Text Files""></a></h3><ul><li><strong>Read/Edit</strong>: Click a text file (e.g., <code>.md</code>, <code>.js</code>, <code>.py</code>, <code>.toml</code>) to open it in the built-in <strong>Monaco Editor</strong>.</li><li><strong>Syntax Highlighting</strong>: Supports common programming languages and configuration formats.</li><li><strong>Save</strong>: Modify the file's content and click <strong>Save</strong> to apply the changes to the bot's filesystem.</li></ul><h3 id="images" tabindex="-1">Images <a class="header-anchor" href="#images" aria-label="Permalink to "Images""></a></h3><ul><li><strong>Preview</strong>: Click an image file (e.g., <code>.png</code>, <code>.jpg</code>, <code>.webp</code>) to see a visual preview directly in the file manager.</li></ul><hr><h2 id="bot-interaction-with-files" tabindex="-1">Bot Interaction with Files <a class="header-anchor" href="#bot-interaction-with-files" aria-label="Permalink to "Bot Interaction with Files""></a></h2><p>Remember that the bot itself can also perform these operations:</p><ul><li>Use its <strong>Skills</strong> or <strong>MCP tools</strong> to read, write, and manage its own files.</li><li>The <strong>Files</strong> tab is your portal to monitor and manually intervene in the bot's workspace.</li></ul>',20)])])}const f=t(n,[["render",r]]);export{m as __pageData,f as default};
|