find_nth_char
Locate the position of the nth occurrence of a specific character within text. Returns the index or -1 if not found.
Instructions
Find index of nth occurrence of a character. Returns -1 if not found.
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": "find_nth_char"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| char | Yes | ||
| n | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |