{
  "description": "Start the Cursor agent with an optional prompt, in interactive or print (non-interactive) mode. Subcommands, MCP, worktree and auth flags are left out.",
  "options": [
    {
      "names": [
        "--print",
        "-p"
      ],
      "description": "Prints the response and exits; the agent has access to all tools including write and shell."
    },
    {
      "names": [
        "--output-format"
      ],
      "description": "Only works with print mode.",
      "args": {
        "name": "output_format",
        "description": "Only works with print mode.",
        "isOptional": false,
        "suggestions": [
          {
            "name": "text",
            "description": "Text"
          },
          {
            "name": "json",
            "description": "JSON"
          },
          {
            "name": "stream-json",
            "description": "Streaming JSON"
          }
        ]
      }
    },
    {
      "names": [
        "--mode"
      ],
      "description": "Mode",
      "args": {
        "name": "mode",
        "isOptional": false,
        "suggestions": [
          {
            "name": "plan",
            "description": "Plan (read-only)"
          },
          {
            "name": "ask",
            "description": "Ask (read-only Q&A)"
          }
        ]
      }
    },
    {
      "names": [
        "--model"
      ],
      "description": "Model",
      "args": {
        "name": "model",
        "isOptional": false,
        "suggestions": [
          {
            "name": "gpt-5",
            "description": "gpt-5"
          },
          {
            "name": "sonnet-4-thinking",
            "description": "sonnet-4-thinking"
          }
        ]
      }
    },
    {
      "names": [
        "--continue"
      ],
      "description": "Continue previous session"
    },
    {
      "names": [
        "--workspace"
      ],
      "description": "Workspace",
      "args": {
        "name": "workspace",
        "isOptional": false,
        "template": "folders"
      }
    },
    {
      "names": [
        "--force",
        "-f"
      ],
      "description": "Allows commands unless explicitly denied.",
      "isDangerous": true
    }
  ],
  "args": [
    {
      "name": "prompt",
      "isOptional": true
    }
  ],
  "name": "cursor-agent"
}
