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.
| Capability | code.change_set_begin |
|---|---|
| Area | Code insight and refactoring |
| Access | changes files |
| Reaches | — |
| Rights | none |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
namerequired | string | Name of the set: what the change does. |
task | string | The task the set belongs to. |
agent | string | The agent proposing it (default: the MCP client's name and version). |
model | string | The model the agent uses. |
cost | object | What the work cost so far. |
cost.input_tokens | integer | Input tokens.minimum 0 |
cost.output_tokens | integer | Output tokens.minimum 0 |
cost.amount | number | Money spent. |
cost.currency | string | Currency 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.
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"}