cursor_launch
Launch a Cursor cloud agent and enqueue its first run. Provide a full task prompt and optional GitHub repo to start autonomous coding, research, or planning runs.
Instructions
Launch a Cursor cloud agent and enqueue its first run.
Pass a complete task prompt: goal, constraints, and how to verify done — vague prompts produce vague agents. Repo-less launches (no repo_url) are for research, reviews, and writing; pass repo_url (a GitHub https URL) when the agent should write code. starting_ref is a branch or SHA; omit it to use the repo default (never assume "main").
Call cursor_models first and pass a model id verbatim — never guess ids, and never pass the literal string "Auto" (omit model instead). model_params is a list of {key, value} dicts for per-model options (only ids/params from cursor_models are accepted). mode is "agent" or "plan".
Returns agent_id AND run_id: poll cursor_status with both. Launch can take minutes; if the tool reports status "unknown", the agent may still have been created — reconcile with cursor_list, or retry with the same idempotency_key (replays are safe and never duplicate).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| name | No | ||
| model | No | ||
| prompt | Yes | ||
| repo_url | No | ||
| model_params | No | ||
| starting_ref | No | ||
| idempotency_key | No |