persistent_array
Perform version-controlled get and set operations on an array using a persistent segment tree, enabling access to and modification of historical array states by version.
Instructions
Persistent array with version-controlled get/set operations using a persistent segment tree.
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": {
"initial": "<initial>",
"operations": "<operations>"
},
"name": "persistent_array"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| initial | Yes | Initial array values | |
| operations | Yes | Operations: {type:'get'|'set', version, index, value?} |