Skip to main content
The Agent Platform JavaScript SDK (AgP JS SDK) allows you to discover, select, and manage AI agents capable of performing different types of web automation tasks. Agents differ based on how they’re optimized for performance, the size and scope of the task they’re completing, and what they’re primarily designed to do. The AgP JS SDK gives you flexible methods to select the right agent to use based on the task you’re trying to complete. With the AgP JS SDK you can:
  • List all available agents
  • Select a specific agent by identifier

List available agents

Use the following command to display available agents.
const agents = await agent.listAgents();
console.log('Available agents:', agents);

Use specific agent

Use the following command to select a specific agent from the list of available agents.
const task = await agent.run(
  'Search for noise-cancelling headphones',
  { agentIdentifier: 'surferh-high' }
);
For more information on H’s agents, see Agents.