Docs / ai / useToolInvocation

useToolInvocation

hooknot for built apps

Low-level hook for directly invoking an agent tool.

import { useToolInvocation } from 'flowstack-sdk'

Direct tool invocation hook. Exported from flowstack-sdk and sharing the same FlowstackProvider context.

Treat the type signatures in packages/flowstack-sdk/src/hooks/useToolInvocation.ts as the source of truth.

WarningBuilt apps should not use useToolInvocation to read data. Read all data with useCollection and let writes flow through deterministic actions or the agent's data_access tools (Reason → Write → Read).

See also

useCollection · useAgent

Source: README.md#additional-hooks-05 · Also available in llms-full.txt and registry.json.