Skip to main content

getSwarmIds

client.agentExecution.getSwarmIds(): Promise<string[]>

Retrieves all known swarm IDs from execution history.

Returns a list of unique swarm identifiers that appear in the execution records, useful for populating filter dropdowns or discovering swarms.

Parameters

No parameters.

Returns

Promise<string[]> — A promise that resolves to an array of swarm ID strings

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.agentExecution.getSwarmIds();
console.log(result);