docs(agent): clarify Kimi append precondition

This commit is contained in:
Bryan Helmkamp 2026-07-24 22:13:12 -04:00
parent eddee10b35
commit debd612b52
No known key found for this signature in database

View file

@ -262,11 +262,11 @@ pub fn make_kimi_write_tool() -> RegisteredTool {
Read an existing file with Read before writing to it — this workspace refuses writes to files \
that have not been read, and the call will fail.
- `mode` defaults to `overwrite`, which replaces the whole file. `append` adds to the end without \
inserting a newline.
- `mode` defaults to `overwrite`, which replaces the whole file. `append` requires an existing file \
and adds to its end without inserting a newline.
- Write is NOT for incremental changes to an existing file, however small. Use Edit instead: \
overwrite replaces everything you did not restate.
- Use Write when the file does not exist, or when you intend a complete replacement.
- Use `overwrite` when the file does not exist, or when you intend a complete replacement.
- Do not create documentation files that were not asked for.",
serde_json::json!({
"type": "object",