Full-text search inside MEGA files
mega_search_contentSearch for text or regex within text files and PDFs stored under a MEGA folder link, and get matching files with line snippets.
Instructions
Search inside text files and PDFs under a MEGA folder link for a query string (or regex). Returns matching files with line snippets. By default PDFs are included; set includePdf:false to skip them (faster).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Text or regex to find inside files. | |
| link | No | Public MEGA link. Defaults to MEGA_LINK. | |
| regex | No | Treat query as a regex. | |
| includePdf | No | Include PDFs in the scan (default true). | |
| maxFiles | No | Max files to scan (default 50). | |
| maxMatchesPerFile | No | Max snippet lines per file (default 5). |