{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "file-manager-webmcp",
  "framework": "javascript",
  "type": "registry:component",
  "component": "FileManager",
  "variant": "webmcp",
  "dependencies": [
    "@syncfusion/ej2-filemanager"
  ],
  "description": "File manager with WebMCP enabled, registering its file operations as tools and handling tool calls.",
  "meta": {
    "essentialStudioRelease": "2026 Volume 3 (v35.1.37)",
    "license": "commercial-or-community",
    "licenseNote": "The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md",
    "requiresLicenseKey": true,
    "requiresServerEndpoint": true,
    "platformIndex": "https://ai.syncfusion.com/javascript/llms.txt",
    "skillPack": "syncfusion/javascript-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/javascript/file-manager-webmcp.md"
  },
  "files": [
    {
      "target": "src/components/file-manager-webmcp/file-manager.html",
      "content": "<div class=\"control-section\">\n    <div class=\"sample-container\">\n        <!-- Initialize FileManager -->\n        <div id=\"container\"></div>\n    </div>\n</div>\n"
    },
    {
      "target": "src/components/file-manager-webmcp/file-manager.ts",
      "content": "import { FileManager, Toolbar, NavigationPane, DetailsView, WebMcpFileManager } from '@syncfusion/ej2-filemanager';\n\nFileManager.Inject(Toolbar, NavigationPane, DetailsView, WebMcpFileManager);\n\n/**\n * File Manager WebMCP tools integration sample\n */\nexport function initFileManagerWebMcp(): void {\n    let hostUrl: string = 'https://physical-service.syncfusion.com/';\n    let filemanagerInstance: FileManager = new FileManager({\n        enableWebMcp: true,\n        webMcpSettings: {\n            name: 'explorer',\n            tools: ['getSelectedFiles', 'manageFileSystemItems', 'manageFileUploadAndDownload'],\n            exposedTo: ['https://www.syncfusion.com/']\n        },\n        ajaxSettings: {\n            downloadUrl: hostUrl + 'api/FileManager/Download',\n            getImageUrl: hostUrl + 'api/FileManager/GetImage',\n            uploadUrl: hostUrl + 'api/FileManager/Upload',\n            url: hostUrl + 'api/FileManager/FileOperations'\n        },\n        beforeWebMcpToolExecute: (args: any) => {\n            // Example business rule\n            if (args.toolName.includes('manageFileSystemItems')) {\n                const hour: number = new Date().getHours();\n                if (hour < 9 || hour > 17) {\n                    args.cancel = true;\n                    console.log('File system operations are allowed only between 9:00 AM and 5:00 PM.');\n                }\n            }\n        }\n    });\n    filemanagerInstance.appendTo('#container');\n}\n"
    }
  ]
}