pub struct GrepInput {Show 13 fields
pub pattern: String,
pub path: Option<String>,
pub glob: Option<String>,
pub file_type: Option<String>,
pub case_insensitive: Option<bool>,
pub line_numbers: Option<bool>,
pub after_context: Option<u32>,
pub before_context: Option<u32>,
pub context: Option<u32>,
pub output_mode: Option<GrepOutputMode>,
pub multiline: Option<bool>,
pub head_limit: Option<u32>,
pub offset: Option<u32>,
}Expand description
Input for the Grep tool - searches file contents.
Fields§
§pattern: StringThe regular expression pattern to search for
path: Option<String>File or directory to search in
glob: Option<String>Glob pattern to filter files (e.g., “*.js”)
file_type: Option<String>File type to search (e.g., “js”, “py”, “rust”)
case_insensitive: Option<bool>Case insensitive search
line_numbers: Option<bool>Show line numbers in output
after_context: Option<u32>Number of lines to show after each match
before_context: Option<u32>Number of lines to show before each match
context: Option<u32>Number of lines to show before and after each match
output_mode: Option<GrepOutputMode>Output mode: content, files_with_matches, or count
multiline: Option<bool>Enable multiline mode
head_limit: Option<u32>Limit output to first N lines/entries
offset: Option<u32>Skip first N lines/entries
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GrepInput
impl<'de> Deserialize<'de> for GrepInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for GrepInput
Auto Trait Implementations§
impl Freeze for GrepInput
impl RefUnwindSafe for GrepInput
impl Send for GrepInput
impl Sync for GrepInput
impl Unpin for GrepInput
impl UnsafeUnpin for GrepInput
impl UnwindSafe for GrepInput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more