rabin_karp_search
Find all occurrences of a pattern in text using the Rabin-Karp rolling hash algorithm for substring matching.
Instructions
Find all occurrences of a pattern in text using the Rabin-Karp rolling hash 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>",
"pattern": "<pattern>"
},
"name": "rabin_karp_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to search in | |
| pattern | Yes | Pattern to find |