Ask Cursor (new chat)
cursor_askSend questions or coding tasks to the Cursor CLI agent in a new chat, using your existing login and optional workspace for context-aware answers.
Instructions
Ask the Cursor CLI (cursor-agent -p) a question or task in a NEW chat.
Uses your existing Cursor login (OS credential store, or a CURSOR_API_KEY env
var — see cursor_status). Returns the agent's final message, read straight
from stdout (no scraping). Cursor is a capable agentic coder with a wide model
menu (GPT / Claude / Grok / Composer); point workspace at a project dir for
context-aware answers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Optional model override (`--model`, e.g. "auto", "gpt-5.2", "claude-opus-4-8-high", "composer-2.5"); validated against `cursor-agent models` and rejected on a typo. cursor bakes the effort and speed axes into the id (…-low/-high/-xhigh/-max, each with a -fast twin) and also accepts a bracket form on the family base, e.g. "claude-opus-4-8[context=1m,effort=high]". Omit to use your Cursor default. | |
| watch | No | If true, open a live "watch" view streaming cursor's steps from its `--output-format stream-json` event stream. Same final text is returned. Best-effort. Default false. | |
| prompt | Yes | Question or instruction for Cursor. | |
| sandbox | No | Permission policy (maps to cursor's mode/force flags): "read-only" (default — `--mode ask`: agent-enforced, no file/shell edits; NOT an OS sandbox, so unlike codex it is not a hard boundary), "workspace-write" (may edit files, rooted at the workspace), or "danger-full-access" (OS sandbox off — avoid). | read-only |
| timeout_s | No | Max seconds to wait for cursor to complete. Default 180. | |
| workspace | No | Working root for the chat (`--workspace`). Defaults to the server cwd. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |