Docs / ai / useAgents

useAgents

hook

Discover the agents available to the current site, including their name, description, tools, trigger phrases, and intended use.

import { useAgents } from 'flowstack-sdk'

Signature

const { agents, isLoading, refreshAgents } = useAgents()

Returns

FieldTypeDescription
agentsAgentInfo[]Available agents — each has name, description, tools, triggerPhrases, and useFor.
isLoadingbooleanFetch in flight.
refreshAgents() => Promise<void>Manual re-fetch of the agent list.

Examples

const { agents, isLoading, refreshAgents } = useAgents();

// agents: AgentInfo[] — each has name, description, tools, triggerPhrases, useFor

See also

useAgent · targeting-custom-agents · agent-catalog

Source: README.md#useagents-discovery · Also available in llms-full.txt and registry.json.