Documentation / @agentick/mcp / isToolVisibleToModel
Function: isToolVisibleToModel()
isToolVisibleToModel(
tool):boolean
Defined in: client/apps.ts:241
Check if a discovered tool is visible to the model (i.e., should appear in tools/list to the LLM). Returns true if the tool's _meta.ui.visibility includes "model", or if visibility is unset (default visibility is ["model", "app"], which means the model can call it).
Hosts MUST filter app-only tools (visibility: ["app"]) from the model's tool list.
Parameters
tool
object & Partial<{ }>
Returns
boolean