File Manager - FileManagerWebMcpSettingsModel

30 Sep 20261 minute to read

Interface for a class FileManagerWebMcpSettings

Properties

exposedTo string[]

Allowed origins for cross-origin iframe access.
Forwarded into every modelContext.registerTool(…) call.

name string

Prefix used when registering WebMCP tool names so multiple FileManager
instances can be differentiated by the host. The registered tool name
becomes `${name}_${toolName}`.
If null, undefined, or an empty/whitespace-only string, falls through
to parent.element.id then getUniqueID('filemanager').

tools string[]|WebMcpTool[]

Tool selection:

  • string[] (non-empty) → allowlist of default-tool names.
  • WebMcpTool[] (non-empty) → register the 7 defaults plus
    these custom tools.
  • absent / null → register all 7 defaults.