cursor_reply
Send a follow-up message to continue an existing Cursor agent session, using the session_id from a previous agent call to maintain conversation context.
Instructions
Continue an existing Cursor agent session. Send a follow-up message in the same conversation context. Requires a session_id from a previous cursor_agent call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Override the model for this reply (any id cursor_models lists). If omitted, uses the session's original model. | |
| prompt | Yes | Follow-up message to send in an existing Cursor agent session. | |
| session_id | Yes | Session ID from a previous cursor-agent call. Use cursor-sessions to list available sessions. | |
| timeout_seconds | No | Maximum execution time in seconds (10-3600). Default: 600 (10 minutes). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | The model cursor-agent reported at start (its display name), if it did | |
| result | Yes | The agent's final answer; without a result event, its last message, else empty (what stdout held is in noise_sample, never here) | |
| status | Yes | cursor-agent's result subtype: success, error, …; no-result-event when the run ended without one | |
| stderr | Yes | ||
| is_error | Yes | ||
| exit_code | Yes | cursor-agent's exit code (null when it was killed) | |
| request_id | Yes | ||
| session_id | Yes | The session to resume with cursor_reply | |
| tool_calls | Yes | Completed tool calls the agent made | |
| duration_ms | Yes | ||
| noise_lines | Yes | stdout lines that were not stream-json events (counted, never dropped) | |
| noise_sample | Yes | The first few of those lines, verbatim (500 characters each at most) | |
| files_changed | Yes | Paths of file-tool write/edit/delete calls that reported success, in order, each once. Shell commands are not inspected: a file written by a shell tool is not listed. | |
| files_proposed | Yes | Paths of file-tool write/edit/delete calls that did not report success (proposed without --force, refused, failed), each once |