text_count_occurrences
Counts how many times a substring appears in a text, with optional case-sensitive matching. Use it to verify frequency, validate input, or analyze repeated terms.
Instructions
Count occurrences of a substring in text.
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>",
"search": "<search>"
},
"name": "text_count_occurrences"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| search | Yes | ||
| case_sensitive | No |