suffix_array_build
Builds a suffix array for an input string and optionally computes the LCP array for longest common prefix analysis.
Instructions
Build a suffix array for a string, with optional LCP (longest common prefix) array.
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>"
},
"name": "suffix_array_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lcp | No | Also compute the LCP array (default false) | |
| text | Yes | Input string |