Skip to content

Commit d7fa963

Browse files
docs: clarify read_command_output search param should be omitted when not filtering (#11056)
1 parent 8640fd1 commit d7fa963

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/core/prompts/tools/native-tools/read_command_output.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The tool supports two modes:
2020
2121
Parameters:
2222
- artifact_id: (required) The artifact filename from the truncated output message (e.g., "cmd-1706119234567.txt")
23-
- search: (optional) Pattern to filter lines. Supports regex or literal strings. Case-insensitive.
23+
- search: (optional) Pattern to filter lines. Supports regex or literal strings. Case-insensitive. **Omit this parameter entirely if you don't need to filter - do not pass null or empty string.**
2424
- offset: (optional) Byte offset to start reading from. Default: 0. Use for pagination.
2525
- limit: (optional) Maximum bytes to return. Default: 40KB.
2626
@@ -38,7 +38,7 @@ Example: Finding specific test failures
3838

3939
const ARTIFACT_ID_DESCRIPTION = `The artifact filename from the truncated command output (e.g., "cmd-1706119234567.txt")`
4040

41-
const SEARCH_DESCRIPTION = `Optional regex or literal pattern to filter lines (case-insensitive, like grep)`
41+
const SEARCH_DESCRIPTION = `Optional regex or literal pattern to filter lines (case-insensitive, like grep). Omit this parameter if not searching - do not pass null or empty string.`
4242

4343
const OFFSET_DESCRIPTION = `Byte offset to start reading from (default: 0, for pagination)`
4444

0 commit comments

Comments
 (0)