lrange
Retrieve elements from a Redis list within a specified range using start and stop indices.
Instructions
Get elements from a Redis list within a specific range.
Returns: str: A JSON string containing the list of elements or an error message.
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": {
"name": "<name>",
"start": "<start>",
"stop": "<stop>"
},
"name": "lrange"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| start | Yes | ||
| stop | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |