kimi_edit_file
Replace an exact string in a file by providing its absolute path, the old text, and the new text. Simplify precise find-and-replace edits for file content.
Instructions
Find-and-replace edit in a file (exact string match).
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": {
"path": "<path>",
"old_string": "<old_string>",
"new_string": "<new_string>"
},
"name": "kimi_edit_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute file path to edit | |
| new_string | Yes | String to replace it with | |
| old_string | Yes | Exact string to find | |
| workFolder | No |