mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-07-28 01:27:58 +00:00
style(tools): wrap write_file guidance Sprintf for golines
This commit is contained in:
@@ -910,7 +910,10 @@ func (t *WriteFileTool) Name() string {
|
|||||||
func (t *WriteFileTool) Description() string {
|
func (t *WriteFileTool) Description() string {
|
||||||
desc := "Write content to a file, replacing any existing content. Content is written byte-for-byte after argument decoding. Standard JSON escaping applies: \\n for newline and \\\\n for a literal backslash-n sequence. If the file already exists you must set overwrite=true, which replaces the ENTIRE file."
|
desc := "Write content to a file, replacing any existing content. Content is written byte-for-byte after argument decoding. Standard JSON escaping applies: \\n for newline and \\\\n for a literal backslash-n sequence. If the file already exists you must set overwrite=true, which replaces the ENTIRE file."
|
||||||
if phrase := t.altToolsPhrase(); phrase != "" {
|
if phrase := t.altToolsPhrase(); phrase != "" {
|
||||||
desc += fmt.Sprintf(" To add to or change part of an existing file without losing its current contents, use %s instead.", phrase)
|
desc += fmt.Sprintf(
|
||||||
|
" To add to or change part of an existing file without losing its current contents, use %s instead.",
|
||||||
|
phrase,
|
||||||
|
)
|
||||||
}
|
}
|
||||||
return desc
|
return desc
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user