tweak: tool outputs to be more llm friendly (#13269)

This commit is contained in:
Aiden Cline
2026-02-12 00:33:18 -06:00
committed by GitHub
parent d86f24b6b3
commit 624dd94b5d
3 changed files with 15 additions and 10 deletions

View File

@@ -62,7 +62,9 @@ export const GlobTool = Tool.define("glob", {
output.push(...files.map((f) => f.path))
if (truncated) {
output.push("")
output.push("(Results are truncated. Consider using a more specific path or pattern.)")
output.push(
`(Results are truncated: showing first ${limit} results. Consider using a more specific path or pattern.)`,
)
}
}