pandaone_write
Write text or binary file changes while requiring a structured reason, problem, and approach for each modification, ensuring auditable code changes before commit.
Instructions
审计写入(核心命令):reason/problem/approach 必填;文本用 --old/--new 或 --content;二进制用 --from-file 或 --content-base64
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new | No | 新字符串(仅文本) | |
| old | No | 原字符串(仅文本) | |
| file | Yes | 目标文件路径(相对 root) | |
| root | No | . | |
| reason | Yes | 改动原因(必填,至少 5 字符) | |
| content | No | 整文件文本内容 | |
| problem | Yes | 解决的问题(必填,至少 10 字符) | |
| approach | Yes | 采用的方法(必填,至少 10 字符) | |
| from_file | No | 原文件路径(用于二进制) | |
| content_base64 | No | 整文件二进制内容(base64) |