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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>",
"workspace": "<workspace>",
"tier": "<tier>"
},
"name": "cursor_run"
}
}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 |