Skip to main content

get

client.backgroundAgents.get(instanceId: string): Promise<BackgroundAgentInstance>

Retrieves a specific background agent instance by ID.

Returns the full details of a single background agent including its configuration, status, and runtime metrics.

Parameters

ParameterTypeRequiredDescription
instanceIdstringYesThe unique identifier of the background agent instance

Returns

Promise<BackgroundAgentInstance> — A promise that resolves to the BackgroundAgentInstance object

Example

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

const client = new CodeBoltClient();

const result = await client.backgroundAgents.get('instanceId');
console.log(result);