cursor_run
Dispatches a code task to the Cursor sub-agent and returns a job id immediately without blocking. Poll with cursor_status; choose consult, plan, or execute tiers.
Instructions
Dispatch a task to the Cursor sub-agent and return a job id IMMEDIATELY. This tool never blocks: a real code task takes minutes, so poll with cursor_status. tier=consult is read-only Q&A, tier=plan is read-only planning, tier=execute may write files and is always isolated in a git worktree.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier | Yes | ||
| model | No | Optional Cursor model id | |
| prompt | Yes | The task for the Cursor agent | |
| workspace | Yes | Absolute path, must be inside a configured workspace root | |
| timeoutSec | No | Wall-clock ceiling for this job |