grep
Search DOCX documents using regex patterns to find specific paragraphs or content in Word files and Google Docs.
Instructions
Search paragraphs with regex. Use file_path for session-based search, file_paths for stateless multi-file search, or google_doc_id for Google Docs.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No | Path to the DOCX file. | |
| google_doc_id | No | Google Doc ID or URL (alternative to file_path). Extract from URL: docs.google.com/document/d/{ID}/edit | |
| file_paths | No | Multiple file paths for stateless multi-file search. No session created. | |
| patterns | No | ||
| pattern | No | ||
| case_sensitive | No | ||
| whole_word | No | ||
| max_results | No | ||
| context_chars | No | ||
| dedupe_by_paragraph | No | ||
| search_xml | No | When true, search raw XML (word/document.xml) instead of paragraph text. | |
| include_context | No | When false, skip document view context (list labels, headers) for faster results. Default: true. |