longest_common_prefix
Finds the longest shared starting substring across an array of strings, enabling comparison and grouping of inputs by common prefix.
Instructions
Find the longest common prefix among an array of strings.
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": {
"strings": "<strings>"
},
"name": "longest_common_prefix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| strings | Yes | Array of strings (max 10,000) |