Skip to content

CursorAPI

Defined in: packages/agentic-control/src/fleet/cursor-api.ts:156

new CursorAPI(options?): CursorAPI

Defined in: packages/agentic-control/src/fleet/cursor-api.ts:163

CursorAPIOptions = {}

CursorAPI

addFollowup(agentId, prompt): Promise<Result<void>>

Defined in: packages/agentic-control/src/fleet/cursor-api.ts:361

Send a follow-up message to an agent

string

string

Promise<Result<void>>


getAgentConversation(agentId): Promise<Result<Conversation>>

Defined in: packages/agentic-control/src/fleet/cursor-api.ts:310

Get conversation history for an agent

string

Promise<Result<Conversation>>


getAgentStatus(agentId): Promise<Result<Agent>>

Defined in: packages/agentic-control/src/fleet/cursor-api.ts:301

Get status of a specific agent

string

Promise<Result<Agent>>


launchAgent(options): Promise<Result<Agent>>

Defined in: packages/agentic-control/src/fleet/cursor-api.ts:321

Launch a new agent

API Spec: https://cursor.com/docs/cloud-agent/api/endpoints

{ images?: object[]; text: string; }

object[]

string

{ ref?: string; repository: string; }

string

string

{ autoCreatePr?: boolean; branchName?: string; openAsCursorGithubApp?: boolean; skipReviewerRequest?: boolean; }

boolean

string

boolean

boolean

{ secret?: string; url: string; }

string

string

Promise<Result<Agent>>


listAgents(): Promise<Result<Agent[]>>

Defined in: packages/agentic-control/src/fleet/cursor-api.ts:292

List all agents

Promise<Result<Agent[]>>


listModels(): Promise<Result<string[]>>

Defined in: packages/agentic-control/src/fleet/cursor-api.ts:382

List available models

API Spec: https://cursor.com/docs/cloud-agent/api/endpoints#list-models

Promise<Result<string[]>>


listRepositories(): Promise<Result<Repository[]>>

Defined in: packages/agentic-control/src/fleet/cursor-api.ts:371

List available repositories

Promise<Result<Repository[]>>


static isAvailable(): boolean

Defined in: packages/agentic-control/src/fleet/cursor-api.ts:181

Check if API key is available

boolean