{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "file-manager-webmcp",
  "framework": "react",
  "type": "registry:component",
  "component": "FileManager",
  "variant": "webmcp",
  "dependencies": [
    "@syncfusion/ej2-react-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/react/llms.txt",
    "skillPack": "syncfusion/react-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/react/ts/file-manager-webmcp.md"
  },
  "files": [
    {
      "target": "src/components/file-manager-webmcp/FileManager.tsx",
      "content": "import { FileManagerComponent, Inject, NavigationPane, DetailsView, Toolbar, WebMcpFileManager } from '@syncfusion/ej2-react-filemanager';\n\n/**\n * File Manager WebMCP tools integration sample\n */\nconst WebMcp = () => {\n  let hostUrl = \"https://physical-service.syncfusion.com/\";\n  const 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\n  const beforeWebMcpToolExecute = (args: any) => {\n    // Example business rule\n    if (args.toolName.includes('manageFileSystemItems')) {\n      const hour = 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  return (\n    <div>\n      <div className=\"control-section\">\n        <FileManagerComponent id=\"filemanager\" ajaxSettings={ajaxSettings} enableWebMcp={true}\n          webMcpSettings={{\n            name: 'explorer',\n            tools: ['getSelectedFiles', 'manageFileSystemItems', 'manageFileUploadAndDownload'],\n            exposedTo: ['https://www.syncfusion.com/']\n          }}\n          beforeWebMcpToolExecute={beforeWebMcpToolExecute}>\n          <Inject services={[NavigationPane, DetailsView, Toolbar, WebMcpFileManager]} />\n        </FileManagerComponent>\n      </div>\n    </div>\n  );\n}\nexport default WebMcp;\n"
    }
  ]
}