array_last
Get last n items from 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": {
"items": "<items>"
},
"name": "array_last"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Number of items to get | |
| items | Yes | Comma-separated items |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes | ||
| last | No | ||
| array | Yes | ||
| first | No |