{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "file-manager-webmcp",
  "framework": "vue",
  "type": "registry:component",
  "component": "FileManager",
  "variant": "webmcp",
  "dependencies": [
    "@syncfusion/ej2-vue-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/vue/llms.txt",
    "skillPack": "syncfusion/vue-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/vue/file-manager-webmcp.md"
  },
  "files": [
    {
      "target": "src/components/file-manager-webmcp/FileManager.vue",
      "content": "<template>\n  <div class=\"control-section file-webmcp\">\n    <div class=\"sample-container\">\n      <ejs-filemanager\n        id=\"filemanager\"\n        :ajaxSettings=\"ajaxSettings\"\n        :enableWebMcp=\"true\"\n        :webMcpSettings=\"webMcpSettings\"\n        :beforeWebMcpToolExecute=\"beforeWebMcpToolExecute\"\n      />\n    </div>\n  </div>\n</template>\n\n<script lang=\"ts\">\nimport { FileManagerComponent, NavigationPane, DetailsView, Toolbar, WebMcpFileManager } from '@syncfusion/ej2-vue-filemanager';\n\nconst hostUrl = 'https://physical-service.syncfusion.com/';\n\nexport default {\n  components: {\n    'ejs-filemanager': FileManagerComponent\n  },\n  data() {\n    return {\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      webMcpSettings: {\n        name: 'explorer',\n        tools: ['getSelectedFiles', 'manageFileSystemItems', 'manageFileUploadAndDownload'],\n        exposedTo: ['https://www.syncfusion.com/']\n      }\n    };\n  },\n  provide() {\n    return {\n      filemanager: [NavigationPane, DetailsView, Toolbar, WebMcpFileManager]\n    };\n  },\n  methods: {\n    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(\n            'File system operations are allowed only between 9:00 AM and 5:00 PM.'\n          );\n        }\n      }\n    }\n  }\n};\n</script>\n\n<style scoped>\n.file-webmcp .sample-container {\n  margin: 10px 10px 10px 10px;\n}\n</style>\n"
    }
  ]
}