New260+ blocks and 240+ tools are now fully documented
DocumentationReferenceTool IntegrationsDeveloper Tools
Tool

Cursor

Launch and manage AI coding agents in Cursor from your workflows

Integrate Cursor's AI coding agents into Zelaxy workflows. Launch agents against a repository, send follow-up prompts, poll agent status, retrieve conversation history, and stop running agents — all from a single block. Use it to automate code-generation tasks, coordinate multi-step coding jobs, or build CI-style pipelines that invoke Cursor on demand.

Overview

PropertyValue
Typecursor
CategoryTool — Developer
AuthBasic (API Key — key sent as the username of an HTTP Basic credential)

Operations

OperationTool IDDescription
Launch Agentcursor_launch_agentStart a new AI coding agent against a repository with a prompt and optional model selection
Add Followupcursor_add_followupSend a follow-up prompt to a running or paused agent conversation
Get Agentcursor_get_agentRetrieve the status and details of a specific agent by ID
Get Conversationcursor_get_conversationFetch the full conversation message history for an agent
List Agentscursor_list_agentsList all agents with optional pagination
Stop Agentcursor_stop_agentHalt a running agent

Configuration

SettingTypeRequiredDescription
apiKeystring (secret)Yes (all operations)Cursor API key. Sent as the username of an HTTP Basic header — keep it in an env var and reference it as {{CURSOR_API_KEY}}.
repositorystringYes (Launch Agent)Repository slug in org/repo format (e.g., acme/backend). Tells the agent which codebase to work in.
refstringNo (Launch Agent)Branch or commit ref to check out (e.g., main, feature/my-branch). Defaults to the repo's default branch when omitted.
promptTextstringYes (Launch Agent, Add Followup)The natural-language task description sent to the agent. For Launch Agent this is the initial prompt; for Add Followup it continues the existing conversation.
modelstringNo (Launch Agent)Model to use for the agent (e.g., claude-4-5). Omit to use the Cursor default.
agentIdstringYes (Add Followup, Get Agent, Get Conversation, Stop Agent)The unique agent ID returned by Launch Agent. Pipe it from an upstream block with {{launchBlock.id}}.
limitnumberNo (List Agents)Maximum number of agents to return per page.
cursorstringNo (List Agents)Pagination cursor from a previous List Agents response (nextCursor) to fetch the next page.

Outputs

FieldTypeDescription
idstringAgent ID (Launch Agent, Add Followup, Get Agent, Get Conversation, Stop Agent)
urlstringLink to view the agent in the Cursor UI — https://cursor.com/agents?selectedBcId={id} (Launch Agent only)
namestringAgent name, if set (Get Agent)
statusstringCurrent agent status, e.g., running, completed, stopped (Get Agent)
sourcejsonSource repository information including repository slug and ref (Get Agent)
targetjsonTarget branch information (Get Agent)
summarystringAgent summary produced after completion (Get Agent)
createdAtstringISO timestamp of when the agent was created (Get Agent)
messagesjsonArray of conversation messages, each with role and content (Get Conversation)
agentsjsonArray of agent objects from the account (List Agents)
nextCursorstringPagination cursor to pass back as cursor for the next page (List Agents)

Example

[Starter] → [Cursor: Launch Agent] → [Cursor: Get Agent] → [Agent: summarize the result]

A webhook trigger fires with a task description in {{starter.input.task}}. The first Cursor block launches an agent against {{REPO_SLUG}} on main using {{CURSOR_API_KEY}}, producing an agent id. A second Cursor block polls Get Agent with {{launchAgent.id}} to check the status. Once the workflow confirms completion, a downstream Agent block reads {{getAgent.summary}} and sends a Slack notification with the coding result.

Tips

  • Pipe the agent ID — Launch Agent returns id as its primary output; every downstream operation (Add Followup, Get Agent, Get Conversation, Stop Agent) requires it. Store it with a Variable block or pass it directly via {{launchAgent.id}}.
  • Poll with a loop — agents run asynchronously. Use a Loop block that calls Get Agent repeatedly and exits when {{getAgent.status}} equals completed or stopped.
  • Auth format — Cursor uses HTTP Basic auth with the API key as the username and an empty password. You do not need to base64-encode it yourself; supply the raw key as {{CURSOR_API_KEY}} and the tool handles encoding.
  • List Agents pagination — pass {{listAgents.nextCursor}} back into cursor on the next iteration to walk through all results when you have many agents.