Skip to content

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.

Capabilitycode.change_set_reject
AreaCode insight and refactoring
Accesschanges files
Reaches—
Rightsnone
Dry runnone

Arguments

ArgumentTypeDescription
idrequiredstringThe set.
filesarray of stringOnly these files of the set.
hunksobjectOnly these hunks (1-based numbers from change_set_diff) of these files, by path.
dry_runbooleanchange_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.

Terminal window
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"
]
}
}
}