{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "file-manager-webmcp",
  "framework": "angular",
  "type": "registry:component",
  "component": "FileManager",
  "variant": "webmcp",
  "dependencies": [
    "@syncfusion/ej2-angular-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/angular/llms.txt",
    "skillPack": "syncfusion/angular-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/angular/file-manager-webmcp.md"
  },
  "files": [
    {
      "target": "src/components/file-manager-webmcp/file-manager.component.html",
      "content": "<div class=\"sample-container\">\n    <ejs-filemanager id=\"filemanager\" [ajaxSettings]=\"ajaxSettings\" [enableWebMcp]=\"true\" [webMcpSettings]=\"webMcpSettings\"\n        (beforeWebMcpToolExecute)=\"beforeWebMcpToolExecute($event)\">\n    </ejs-filemanager>\n</div>\n"
    },
    {
      "target": "src/components/file-manager-webmcp/file-manager.component.ts",
      "content": "import { Component, ViewEncapsulation } from '@angular/core';\nimport { FileManager, FileManagerAllModule, WebMcpFileManager, NavigationPaneService, ToolbarService, DetailsViewService } from '@syncfusion/ej2-angular-filemanager';\n\nFileManager.Inject(WebMcpFileManager);\n\n/**\n * File Manager WebMCP tools integration sample\n */\n@Component({\n    selector: 'control-content',\n    templateUrl: 'file-manager.component.html',\n    styleUrls: ['../file-manager-common.style.css'],\n    encapsulation: ViewEncapsulation.None,\n    providers: [NavigationPaneService, ToolbarService, DetailsViewService],\n    standalone: true,\n    imports: [FileManagerAllModule]\n})\n\nexport class WebMcpController {\n    public hostUrl: string = 'https://physical-service.syncfusion.com/';\n    public ajaxSettings: object = {\n        downloadUrl: this.hostUrl + 'api/FileManager/Download',\n        getImageUrl: this.hostUrl + 'api/FileManager/GetImage',\n        uploadUrl: this.hostUrl + 'api/FileManager/Upload',\n        url: this.hostUrl + 'api/FileManager/FileOperations'\n    };\n    public webMcpSettings: object = {\n        name: 'explorer',\n        tools: ['getSelectedFiles', 'manageFileSystemItems', 'manageFileUploadAndDownload'],\n        exposedTo: ['https://www.syncfusion.com/']\n    };\n    public beforeWebMcpToolExecute(args: any): void {\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"
    }
  ]
}