cursor_agent_start
Starts a long-running prompt in the background and returns a job ID. Poll with the check tool to retrieve results.
Instructions
Start a long-running prompt in the background; returns job_id immediately. Poll with cursor_agent_check.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| force | No | Pass --force / --yolo so the agent can run shell without prompts. Env: CURSOR_AGENT_FORCE. | |
| label | No | ||
| model | No | Model id for the CLI (e.g. auto, gpt-5, composer-2). Overrides CURSOR_AGENT_MODEL. | |
| trust | No | Pass --trust (default true). Env: CURSOR_AGENT_TRUST. | |
| prompt | Yes | ||
| api_key | No | Cursor API key (crsr_…). Prefer CURSOR_API_KEY / CURSOR_AGENT_API_KEY in MCP env. | |
| config_dir | No | Explicit CURSOR_CONFIG_DIR override. Implies isolated config for this call. | |
| executable | No | ||
| extra_args | No | ||
| bare_config | No | Use an isolated CURSOR_CONFIG_DIR (~/.cursor-agent-mcp by default) so the CLI does not load user MCPs/plugins. Much faster startup. Env: CURSOR_AGENT_BARE_CONFIG=1. | |
| echo_prompt | No | ||
| output_format | No | text |