cursor_agent_edit_file
Modify files using prompt-based instructions without CLI commands. Supports configurable output formats, dry runs, and optional extras to streamline file editing tasks.
Instructions
Edit a file with an instruction. Prompt-based wrapper; no CLI subcommand required.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
apply | No | ||
cwd | No | ||
dry_run | No | ||
echo_prompt | No | ||
executable | No | ||
extra_args | No | ||
file | Yes | ||
force | No | ||
instruction | Yes | ||
model | No | ||
output_format | No | text | |
prompt | No |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"apply": {
"type": "boolean"
},
"cwd": {
"type": "string"
},
"dry_run": {
"type": "boolean"
},
"echo_prompt": {
"type": "boolean"
},
"executable": {
"type": "string"
},
"extra_args": {
"items": {
"type": "string"
},
"type": "array"
},
"file": {
"minLength": 1,
"type": "string"
},
"force": {
"type": "boolean"
},
"instruction": {
"minLength": 1,
"type": "string"
},
"model": {
"type": "string"
},
"output_format": {
"default": "text",
"enum": [
"text",
"json",
"markdown"
],
"type": "string"
},
"prompt": {
"type": "string"
}
},
"required": [
"file",
"instruction"
],
"type": "object"
}