count_substring
Count occurrences of a substring.
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>",
"substring": "<substring>"
},
"name": "count_substring"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to search in | |
| substring | Yes | Substring to count | |
| overlapping | No | Count overlapping occurrences | |
| case_sensitive | No | Case sensitive counting |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| count | Yes | ||
| positions | Yes | ||
| substring | Yes | ||
| overlapping | Yes | ||
| case_sensitive | Yes |