find_all_char_indices
Locate every occurrence of a specific character within a text string. Returns a list of positions for precise character-level indexing and text manipulation.
Instructions
Find all indices where a character appears. Returns empty list 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_all_char_indices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| char | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |