feat: extract text editor tools (#1726)

This commit is contained in:
yetone
2025-03-26 17:59:59 +08:00
committed by GitHub
parent 0e69891bdc
commit b41556ee21
8 changed files with 259 additions and 99 deletions

View File

@@ -9,7 +9,7 @@ local M = setmetatable({}, Base)
M.name = "view"
M.description =
"The view command allows you to examine the contents of a file or list the contents of a directory. It can read the entire file or a specific range of lines. If the file content is already in the context, do not use this tool."
"The view tool allows you to examine the contents of a file or list the contents of a directory. It can read the entire file or a specific range of lines. If the file content is already in the context, do not use this tool."
M.enabled = function(opts)
if opts.user_input:match("@read_global_file") then return false end