booth_rotation
Finds the lexicographically smallest rotation of a string using Booth's algorithm, enabling efficient string comparison and canonical form selection.
Instructions
Find the lexicographically smallest rotation of a string using Booth's algorithm.
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": "booth_rotation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Input string (max 1,000,000 chars) |