[ { "name": "multi_keyword_search", "description": "**Core Function**: Intelligent hybrid search with keywords and regular expressions, solving keyword order limitation problems.\n\n**Applicable Scenarios**: Comprehensive content retrieval of pagination.txt files when extended keywords are obtained.\n\n**Advantages**:\n- Does not depend on keyword occurrence order, more flexible matching\n- Sorts by number of matched keywords, prioritizing most relevant results\n- Supports mixed use of regular keywords and regular expressions\n- Intelligently recognizes multiple regex formats\n- Enhanced result display with match types and detailed information\n- Output format: `[line_number]:[match_count]:[match_info]:[original_line_content]`\n\n**Supported Regex Formats**:\n- `/pattern/` format: e.g., `/def\\s+\\w+/`\n- `r\"pattern\"` format: e.g., `r\"\\w+@\\w+\\.\\w+\"`\n- Strings containing regex special characters: e.g., `\\d{3}-\\d{4}`\n- Automatic detection and intelligent recognition of regex patterns\n\n**Match Type Display**:\n- `[keyword:xxx]` Shows regular keyword matches\n- `[regex:pattern=matched_text]` Shows regex matches and specific matched content\n\n**Use Cases**:\n- Composite condition searches: Scenarios requiring matching multiple keywords and regex simultaneously\n- Unordered matching: Data retrieval where keyword occurrence order is not fixed\n- Pattern matching: Complex data retrieval needing specific formats (email, phone, date)\n- Relevance sorting: Prioritize most relevant results by match degree\n- Hybrid retrieval: Advanced search combining keyword exact matching and regex pattern matching", "inputSchema": { "type": "object", "properties": { "keywords": { "type": "array", "items": {"type": "string"}, "description": "Array of keywords and regex expressions to search. Supports: 1) Regular keywords 2) /pattern/ format regex 3) r\"pattern\" format regex 4) Strings containing regex special characters" }, "file_paths": { "type": "array", "items": {"type": "string"}, "description": "List of file paths to search" }, "limit": { "type": "integer", "description": "Maximum number of results to return, default 10", "default": 10 }, "case_sensitive": { "type": "boolean", "description": "Whether to distinguish case sensitivity, default false", "default": false } }, "required": ["keywords", "file_paths"] } } ]