Cursor Delegate
v3.5.0Bring Cursor's CLI agent into your agent's council for second opinions, plans and edits.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
delegate Delegate coding task to Cursor
Ask cursor-agent a question or delegate coding work to it over ACP. Never shell out to cursor-agent — use this tool only. mode ask gives a second opinion; parallel calls with the same brief compare views. Auto-approves every permission the agent requests, in any mode and anywhere on disk. Clarifying questions arrive as prose in result — resume with resumeSessionId to answer. Keep model (composer-2.5), fast and effort at their defaults unless the user explicitly asks. If the delegate skill is installed, load it before handing off implementation.
| Parameter | Type | Description |
|---|---|---|
spec * | string | Task brief: goal, scope, fixed decisions quoted exactly, acceptance criteria. Sent as written. Point at files to read rather than pasting code, or attach them with contextFiles. |
workspace * | string | The agent's working directory, not a limit. Smallest directory holding the task's files; with no such directory the project root is the floor. Must already exist; never create one for the call. |
context | string | Context window size; gpt-5.x accepts 272k and 1m. Do not pass speculatively. |
contextFiles | array | Paths to attach instead of pasting contents into spec. Text becomes references the agent may open; images (png/jpg/gif/webp, <5MB) are sent inline. Relative paths resolve against workspace but are not… |
effort | string | Exact Cursor thinking-effort value for the selected model. Values differ per model and some expose no effort option; invalid values fail before the prompt and name the accepted set. Pass only when the… |
fast | boolean | Fast tier; higher cost — only when the user asks. |
mode | string | agent implements; plan and ask are instructions to the agent, not limits. |
model | string | Bare ACP family id, version included, such as composer-2.5. The ids on offer depend on the account; doctor deep:true lists them. |
resumeSessionId | string | Continue an existing ACP session. When delegate ran as an MCP task, its server-side task id works too. |
cancel Cancel Cursor delegation
Best-effort cancel of an in-flight delegation by sessionId. session/cancel is advisory — the agent may finish the turn anyway, and the delegate result then carries cancelRequested. Status: cancelled, killed (agent process observed to exit), not-running (turn already ended, still resumable), not-found (id not in this process's session history).
| Parameter | Type | Description |
|---|---|---|
sessionId * | string | When delegate runs as an MCP task, its server-side task id works too. |
force | boolean | Kill the agent process if the turn is still running after a short grace period. |
doctor Diagnose Cursor delegation setup
Diagnose cursor-agent, login, plan and workspace (default: server cwd); warnings lists what needs action. Run when delegation fails.
| Parameter | Type | Description |
|---|---|---|
deep | boolean | Also open an ACP session: adds the models this account offers, the default model check, modes and the current model's options. |
workspace | string |