Set Swarm Variable
icx_var_setStores a named typed variable, AST, symbol table, or state object into the persistent V_t swarm namespace with optional TTL. Accessible to all collaborative agents. 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>",
"value": "<value>"
},
"name": "icx_var_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The unique variable identifier in the swarm space. | |
| type | No | Optional variable type: 'string', 'json', 'ast', 'diff', 'report', 'binary' (default: 'json'). | |
| value | Yes | The value payload to store (string, JSON, or code snippet). | |
| agent_id | No | Optional agent identifier (e.g. 'cursor', 'claude_desktop'). | |
| space_id | No | Optional memory space partition (default: 'default'). | |
| ttl_seconds | No | Optional Time-To-Live in seconds (default: 86400 = 24h, 0 = permanent). |
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 |