string_char_count
Count how many times a specific character appears in a string. Useful for validating input, analyzing text, or checking character frequency.
Instructions
Count occurrences of a character in a string.
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": "string_char_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| char | Yes | ||
| text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |