gid_refactor
Preview or apply refactoring changes to a codebase graph, including renaming, moving, splitting, merging, or deleting nodes.
Instructions
Preview or apply graph changes to codebase (rename, move, split, merge nodes)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"operation": "<operation>",
"nodeId": "<nodeId>"
},
"name": "gid_refactor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Preview changes without applying (default: true) | |
| nodeId | Yes | Node to refactor | |
| newName | No | New name for rename operation | |
| newLayer | No | New layer for move operation | |
| graphPath | No | Path to graph.yml (optional) | |
| operation | Yes | Refactoring operation |