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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "mega_search_content"
}
}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). |