count_char
Count occurrences of a character (e.g., how many 'r' in 'strawberry').
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>",
"char": "<char>"
},
"name": "count_char"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| char | Yes | Character to count | |
| text | Yes | The text to search in | |
| case_sensitive | No | Case sensitive counting |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| count | Yes | ||
| character | Yes | ||
| positions | Yes | ||
| case_sensitive | Yes |