Get Swarm Variable
icx_var_getRetrieves a named typed variable, AST, symbol table, or state object from the persistent V_t swarm namespace. Read-only. Requires X-License-Key authentication.
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": {
"key": "<key>"
},
"name": "icx_var_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The variable key to retrieve. | |
| space_id | No | Optional memory space partition (default: 'default'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | description=Error details if operation failed | |
| status | Yes | description=Operation status (ok | error) | |
| swapped | No | description=True if atomic CAS succeeded | |
| variable | No | description=Target variable details | |
| operation | Yes | description=Action performed (get | set | swap | list | lock) | |
| variables | No | description=List of variables in space for list operation |