Skip to content

Documentation / @agentick/mcp / isToolVisibleToApps

Function: isToolVisibleToApps()

isToolVisibleToApps(tool): boolean

Defined in: client/apps.ts:228

Check if a discovered tool is visible to apps (i.e., can be called from a ui:// iframe). Returns true if the tool's _meta.ui.visibility includes "app", or if visibility is unset (default visibility is ["model", "app"], which means apps can call it).

Parameters

tool

object & Partial<{ }>

Returns

boolean

Released under the ISC License.