kimi_edit_file
Replace an exact string in a file with new content. Specify the file path, the exact text to find, and the replacement to apply.
Instructions
Edit a file by replacing an exact string with new content.
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 | New string to replace with | |
| old_string | Yes | Exact string to find and replace | |
| workFolder | No | Working directory (absolute path) |