mcp-use TypeScript API
    Preparing search index...

    Function isToolVisibleToModel

    • Tests whether a tool is visible to the model.

      Tools without explicit visibility metadata remain model-visible.

      Parameters

      • tool: { _meta?: unknown }

        Tool metadata to inspect.

      Returns boolean

      true when the tool may be presented to the model.