Skip to content

change_set_begin

MCP tools › Code insight and refactoring

Begin a change set: a named unit for an agent's edits, proposed with change_set_edit, previewed with change_set_diff, applied or rejected per file or hunk, undone through the local history. Stores task, agent (default: the MCP client), model and cost with the set, masked, never secrets. Returns the set's id, its metadata and the Git worktree it is made in (root, branch, linked), with a notice when that is the repository's main working tree. Needs no right: it writes only the set's record in .ferris-idea/change-sets/.

Its results carry text from files, records: the client is told to treat that as data, never as instructions.

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

Arguments

ArgumentTypeDescription
namerequiredstringName of the set: what the change does.
taskstringThe task the set belongs to.
agentstringThe agent proposing it (default: the MCP client's name and version).
modelstringThe model the agent uses.
costobjectWhat the work cost so far.
cost.input_tokensintegerInput tokens.minimum 0
cost.output_tokensintegerOutput tokens.minimum 0
cost.amountnumberMoney spent.
cost.currencystringCurrency of amount, e.g. USD.

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_begin '{"name":"<string>"}'
Input schema as JSON
{
"properties": {
"name": {
"description": "Name of the set: what the change does.",
"type": "string"
},
"task": {
"description": "The task the set belongs to.",
"type": [
"string",
"null"
]
},
"agent": {
"description": "The agent proposing it (default: the MCP client's name and version).",
"type": [
"string",
"null"
]
},
"model": {
"description": "The model the agent uses.",
"type": [
"string",
"null"
]
},
"cost": {
"description": "What the work cost so far.",
"anyOf": [
{
"$ref": "#/$defs/CostArgs"
},
{
"type": "null"
}
]
}
},
"$defs": {
"CostArgs": {
"description": "What the work cost (`SPEC-0340` behaviour 2).",
"type": "object",
"properties": {
"input_tokens": {
"description": "Input tokens.",
"type": [
"integer",
"null"
],
"minimum": 0
},
"output_tokens": {
"description": "Output tokens.",
"type": [
"integer",
"null"
],
"minimum": 0
},
"amount": {
"description": "Money spent.",
"type": [
"number",
"null"
]
},
"currency": {
"description": "Currency of `amount`, e.g. USD.",
"type": [
"string",
"null"
]
}
}
}
},
"required": [
"name"
],
"type": "object"
}