Skip to main content
Glama

search_multiple_pdfs

Search for text patterns across multiple PDF files simultaneously using parallel processing to reduce search time and handle large batches efficiently.

Instructions

Search for text patterns across multiple PDF files in parallel. Processes files concurrently based on the parallelism factor for optimal performance. Increase parallelism (max: 50) to search more files simultaneously and reduce total search time. For large batches of files, prefer a single call with high parallelism rather than multiple smaller calls (e.g., search 100 files with parallelism=50 in one call instead of multiple calls with 20 files each). Returns matches and errors for each file separately.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filesYesArray of PDF files to search. Each file must specify either absolute_path or relative_path.
search_patternYesSearch pattern: '/regex/flags' format or plain text. Applied to all files.
parallelismNoNumber of files to process concurrently. Higher values = faster search. Default: 4, Max: 50
page_rangeNoPage range to search in each file. Default: '1:' (all pages)1:
max_results_per_fileNoMax matches per file before stopping. Optional.
max_pages_scanned_per_fileNoMax pages to scan per file. Optional.
context_charsNoCharacters of context around matches. Default: 150
search_timeoutNoTimeout per file in milliseconds. Default: 10000

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/vlad-ds/pdf-agent-mcp'

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