aho_corasick_search
Search text for multiple patterns at once and return every occurrence using the Aho-Corasick algorithm, enabling multi-pattern matching in one pass.
Instructions
Find all occurrences of multiple patterns in text simultaneously using the Aho-Corasick algorithm.
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": {
"text": "<text>",
"patterns": "<patterns>"
},
"name": "aho_corasick_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to search in | |
| patterns | Yes | Patterns to search for |