Contents

Cursor Cloud Tools

cursor_cloud_tools · Nodes · AI

Makes Cursor Cloud Agent tools available to AI steps.

Cursor Cloud Tools#

Emits Cursor Cloud Agent tools for use by AI conversation nodes. Connect the tools output to an AI node's tools input to give the AI the ability to create and manage Cursor Cloud Agents autonomously.

Sockets#

Socket Direction Description
input Input Unused by this node (required for graph connectivity)
tools Output Array of Cursor Cloud Agent tools for AI agent nodes

Configuration#

Connection#

A Cursor Cloud Agent connection containing your Cursor API key.

Create Agent Defaults#

Set these on the node to pin AI-created Cursor agents to a repository or Cursor environment. Configured values are locked: they are omitted from the AI-facing tool schema and cannot be overridden by the agent.

Field Type Description
repo_url TextBlock Default GitHub repository URL
starting_ref TextBlock Default branch, tag, or commit SHA
pr_url TextBlock Default GitHub pull request URL
model_id TextBlock Model ID (required for agents, e.g. gpt-5, claude-sonnet-4-20250514)
auto_create_pr Boolean Default Cursor PR creation setting. See caveat below.
work_on_current_branch Boolean Push directly to starting_ref or the PR head branch instead of a new Cursor-generated branch
name TextBlock Default custom agent name
env_vars JSON Default environment variables
mode Enum Default mode: agent or plan
env_type Enum Default Cursor environment type: cloud, pool, or machine
env_name TextBlock Default Cursor environment name

cursor_create_agent requires either a repository URL or a Cursor environment name after locked defaults are applied. Do not set both; Cursor rejects explicit repositories with named environments.

Cursor API v1 does not support choosing a custom new branch name. Use starting_ref to choose the base ref. If you need Cursor to push to a specific existing branch, set starting_ref to that branch and enable work_on_current_branch.

Auto PR caveat#

Cursor Cloud Agents created through the API can fail automatic PR creation even when the Cursor GitHub App appears to have the right repository permissions. The common GitHub error is Resource not accessible by integration around createPullRequest. This is a Cursor GitHub App runtime-token scope issue; only Cursor can fix the built-in auto_create_pr path reliably.

Workarounds:

  • Add a repo-scoped GitHub token as GH_TOKEN in Cursor Cloud Agent environment/secrets so the agent can use GitHub directly.
  • Set auto_create_pr to false, let Cursor push a branch, then create the PR in a later Verdalia workflow step using GitHub tooling or a webhook/integration.
  • For a predictable existing branch, set starting_ref and enable work_on_current_branch.

Tool Toggles#

Enable or disable individual tools. Every tool is enabled by default.

Toggle Default Tool Instance Name
Create Agent Enabled cursor_create_agent
Wait For Run Enabled cursor_wait_for_run
Get Run Result Enabled cursor_get_run_result
Send Followup Enabled cursor_send_followup
Cancel Run Enabled cursor_cancel_run
List Agents Enabled cursor_list_agents
Get Agent Enabled cursor_get_agent

Retry#

Whether each Cursor API request a tool makes is sent again after a failure that passes: a rate limit, a busy server, a dropped connection. Off by default; see Retries for how attempts and waits work. cursor_wait_for_run's polls, cursor_get_run_result, cursor_list_agents and cursor_get_agent are sent again freely. cursor_create_agent, cursor_send_followup and cursor_cancel_run are writes, sent again only when Cursor refused them before acting: the connection never opened, or Cursor answered 425 or 429. Cursor answers a rate limit with 429 and a Retry-After header, which Retry follows; how it reports running out of agent capacity is not documented.

Tool names#

Every emitted tool is called <handle>__<tool>, where <handle> is the fixed handle of the configured Cursor connection, for example cursor_cloud_agent__cursor_create_agent. The prefix is there even when the workspace has a single Cursor connection. Renaming the connection never changes it. A name longer than 64 characters keeps its first 55 characters and ends with _ and an 8-character hash. The instance names above and the headings below are the <tool> part.

Tool Reference#

Each tool's parameters match the corresponding operation on the Cursor Cloud Agent node.

cursor_create_agent#

Creates a Cursor Cloud Agent to autonomously work on a codebase.

Parameter Type Required Description
prompt string yes Instructions for the agent
repo_url string no GitHub repository URL
starting_ref string no Branch, tag, or commit SHA
pr_url string no GitHub pull request URL
auto_create_pr boolean no Ask Cursor to create a PR (default: true; may fail due Cursor GitHub App token scopes)
work_on_current_branch boolean no Push directly to starting_ref or the PR head branch
name string no Custom agent name
env_vars object no Environment variables
mode string no agent or plan (default: agent)
env_type string no cloud, pool, or machine
env_name string no Cursor environment name

cursor_wait_for_run#

Wait for a Cursor agent run to reach a terminal state.

Parameter Type Required Description
agent_id string yes Agent ID
run_id string no Run ID (empty for latest)
poll_interval_secs integer no Poll interval (default: 10)
timeout_secs integer no Timeout in seconds (default: 600)

cursor_get_run_result#

Get the result of a Cursor agent run.

Parameter Type Required Description
agent_id string yes Agent ID
run_id string no Run ID (empty for latest)

cursor_send_followup#

Send a followup prompt to an existing Cursor agent.

Parameter Type Required Description
agent_id string yes Agent ID
prompt string yes Followup instructions

cursor_cancel_run#

Cancel a running Cursor agent run.

Parameter Type Required Description
agent_id string yes Agent ID
run_id string yes Run ID to cancel

cursor_list_agents#

List Cursor Cloud Agents for the workspace.

Parameter Type Required Description
limit integer no Max agents to return (default: 20)

cursor_get_agent#

Get details about a specific Cursor Cloud Agent.

Parameter Type Required Description
agent_id string yes Agent ID

See Also#

Inputs

  • inputRequired

Outputs

  • tools

Configuration

FieldTypeRequiredDescription
connectionnullable<connection(cursor_cloud_agent)>YesCursor Cloud Agent connection used by emitted tools
repo_urltext_blockNoDefault GitHub repository URL for created agents
starting_reftext_blockNoDefault branch, tag, or commit SHA
pr_urltext_blockNoDefault GitHub pull request URL
model_idtext_blockNoModel ID (required for agents, e.g. gpt-5, claude-sonnet-4-20250514)
auto_create_prbooleanNoDefault Cursor pull request creation setting. API-created agents may fail this if Cursor's GitHub App runtime token lacks pull request write scope; use GH_TOKEN or a follow-up Verdalia workflow if that happens.
work_on_current_branchbooleanNoDefault work on current branch setting
nametext_blockNoDefault custom agent name
env_varscode(json)NoDefault environment variables as JSON object
modeenum(agent, plan)NoDefault agent mode
env_typeenum(cloud, pool, machine)NoDefault Cursor environment type
env_nametext_blockNoDefault Cursor environment name
create_agent_toolbooleanNoEmit cursor_create_agent tool
wait_for_run_toolbooleanNoEmit cursor_wait_for_run tool
get_run_result_toolbooleanNoEmit cursor_get_run_result tool
send_followup_toolbooleanNoEmit cursor_send_followup tool
cancel_run_toolbooleanNoEmit cursor_cancel_run tool
list_agents_toolbooleanNoEmit cursor_list_agents tool
get_agent_toolbooleanNoEmit cursor_get_agent tool
retrytagged_unionNoSends a request again after a failure that passes: a rate limit, a busy server, a dropped connection. Off sends once.
base_configrecordNoShared node configuration. failure_mode decides what a failure of this node does to the workflow; leave it at the default stop unless the workflow handles the failure itself on the node's error output (route_to_error) or the node is a rare emergency kill switch (stop_workflow).