From eb9a0022844ec59f855a2ca5285c77996dc44ff0 Mon Sep 17 00:00:00 2001 From: Andres Sommerhoff Date: Mon, 15 Jun 2026 01:43:57 -0400 Subject: [PATCH] docs: clarify search_files newline regex behavior --- tools/file_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/file_tools.py b/tools/file_tools.py index 1fc778e0d6c..42b6153cb95 100644 --- a/tools/file_tools.py +++ b/tools/file_tools.py @@ -1595,7 +1595,7 @@ PATCH_SCHEMA = { SEARCH_FILES_SCHEMA = { "name": "search_files", - "description": "Search file contents or find files by name. Use this instead of grep/rg/find/ls in terminal. Ripgrep-backed, faster than shell equivalents.\n\nContent search (target='content'): Regex search inside files. Output modes: full matches with line numbers, file paths only, or match counts.\n\nFile search (target='files'): Find files by glob pattern (e.g., '*.py', '*config*'). Also use this instead of ls — results sorted by modification time.", + "description": "Search file contents or find files by name. Use this instead of grep/rg/find/ls in terminal. Ripgrep-backed, faster than shell equivalents.\n\nContent search (target='content'): Regex search inside files. Output modes: full matches with line numbers, file paths only, or match counts. Content search is line-oriented: do not put \\n in regex patterns (even inside alternation); use context to inspect neighboring lines.\n\nFile search (target='files'): Find files by glob pattern (e.g., '*.py', '*config*'). Also use this instead of ls — results sorted by modification time.", "parameters": { "type": "object", "properties": {