cursor_agent_run
Execute cursor-agent commands with prompts to analyze code, search repositories, and edit files while managing token usage for workspace operations.
Instructions
Run cursor-agent with a prompt and desired output format (legacy single-shot).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "cursor_agent_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| output_format | No | text | |
| extra_args | No | ||
| cwd | No | ||
| executable | No | ||
| model | No | ||
| force | No |