change_set_reject
MCP tools › Code insight and refactoring
Reject in a change set: the files in hunks only their named hunks (a file with every hunk rejected is rejected), the files named whole, or with neither every pending file. Rejected hunks are never applied. Writes nothing in the project: needs no right. Returns the files concerned and the set's counts.
Its results carry text from files, records: the client is told to treat that as data, never as instructions.
| Capability | code.change_set_reject |
|---|---|
| Area | Code insight and refactoring |
| Access | changes files |
| Reaches | — |
| Rights | none |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
idrequired | string | The set. |
files | array of string | Only these files of the set. |
hunks | object | Only these hunks (1-based numbers from change_set_diff) of these files, by path. |
dry_run | boolean | change_set_apply only: show what would be written (default true). |
Call it from a shell
ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.
ferris-idea call ~/my-project change_set_reject '{"id":"<string>"}'Input schema as JSON
{ "type": "object", "required": [ "id" ], "properties": { "id": { "description": "The set.", "type": "string" }, "files": { "description": "Only these files of the set.", "type": [ "array", "null" ], "items": { "type": "string" } }, "hunks": { "description": "Only these hunks (1-based numbers from `change_set_diff`) of these files, by path.", "type": [ "object", "null" ], "additionalProperties": { "type": "array", "items": { "type": "integer", "minimum": 0 } } }, "dry_run": { "description": "`change_set_apply` only: show what would be written (default true).", "type": [ "boolean", "null" ] } }}