Skip to main content
Glama

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
NameRequiredDescriptionDefault
file_pathNoPath to the DOCX file.
google_doc_idNoGoogle Doc ID or URL (alternative to file_path). Extract from URL: docs.google.com/document/d/{ID}/edit
file_pathsNoMultiple file paths for stateless multi-file search. No session created.
patternsNo
patternNo
case_sensitiveNo
whole_wordNo
max_resultsNo
context_charsNo
dedupe_by_paragraphNo
search_xmlNoWhen true, search raw XML (word/document.xml) instead of paragraph text.
include_contextNoWhen false, skip document view context (list labels, headers) for faster results. Default: true.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/UseJunior/safe-docx'

If you have feedback or need assistance with the MCP directory API, please join our Discord server