nreki_code
Read, edit, or batch-edit code by symbol with syntax and type checks before writing, plus undo, focused reads, and output compression to reduce tokens.
Instructions
Read and edit code. read: whole file; with focus:"a,b" only those symbols (also compress focus). edit/batch_edit: change a symbol by name; syntax and types are checked before writing, nothing is written on error. mode patch: replace search_text with replace_text inside the symbol (cheapest). undo: revert the last edit of path. filter_output: shrink terminal text (output). Also: compress:true or level for skeletons.
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": {
"action": "<action>"
},
"name": "nreki_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| path | No | ||
| edits | No | ||
| focus | No | ||
| action | Yes | ||
| output | No | ||
| symbol | No | ||
| new_code | No | ||
| search_text | No | ||
| replace_text | No |