cursor_execute
Execute a bounded coding task via cursor-agent CLI synchronously and get a JSON report with diff and status.
Instructions
Execute one bounded coding task through cursor-agent CLI (synchronous, blocks until done) and return a compact JSON report with diff/status context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Absolute working directory/repository root. | |
| task | Yes | Bounded coding task with goal, constraints, files, acceptance criteria, and verification command. | |
| model | No | Optional cursor-agent model, e.g. gpt-5, sonnet-4-thinking, composer. | |
| resume | No | Resume a specific cursor-agent chat/session id instead of starting a new one. | |
| timeoutMs | No | Internal timeout; must be below the MCP client's own per-call timeout. | |
| continueSession | No | Continue the last cursor-agent session; ignored when resume is set. |